Update an app integration SMTP

Updates the app integration SMTP by the given id.

put
Path parameters
idstringRequired

The id of the app integration SMTP.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body

The request data transfer object for the SMTP integration.

appIntegrationIdstring · min: 1Required

The type of the SMTP integration.

namestring · min: 1Required

The name of the SMTP integration.

hoststring · min: 1Required

The host of the SMTP integration.

portinteger · int32Required

The port of the SMTP integration.

usernamestring · min: 1Required

The username of the SMTP integration.

passwordstring · min: 1Required

The password of the SMTP integration.

useTlsboolean | nullableOptional

Flag to indicate if the SMTP integration uses TLS. By default, it is set to false.

isDefaultboolean | nullableOptional

Flag to indicate if the SMTP integration is the default. By default, it is set to false.

descriptionstring | nullableOptional

The description of the SMTP integration.

statusstring · enumOptionalPossible values:
Responses
200
The request was successful.
application/json
put
PUT /api/v1/app-integrations/smtp/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 176

{
  "appIntegrationId": "text",
  "name": "text",
  "host": "text",
  "port": 1,
  "username": "text",
  "password": "text",
  "useTls": true,
  "isDefault": true,
  "description": "text",
  "status": "0 - Inactive"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "name": "SMTP Integration",
    "host": "smtp.gmail.com",
    "port": 587,
    "username": "username",
    "password": "password",
    "useTls": true,
    "isDefault": true,
    "description": "SMTP Integration Description",
    "status": "Active",
    "id": "sApKpllz4sAplsmzha"
  },
  "errors": []
}

Last updated

Was this helpful?