Update an app integration SMS

Updates an app integration SMS by the given id.

put
Path parameters
idstringRequired

The app integration SMS id.

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

Provides a data transfer object for the SMS integration which is used for command requests.

appIntegrationIdstring · min: 1Required

The app integration provider ID of the SMS.

namestring · min: 1Required

The name of the SMS integration.

usernamestring · min: 1Required

The username or identifier for the SMS integration. For Twilio, this is the Account SID (String Identifier).

passwordstring · min: 1Required

The password or authentication token for the SMS integration. For Twilio, this is the Auth Token.

phoneNumberstring · min: 1Required

The phone number of the SMS integration. The phone number should be following the E.164 format.

descriptionstring | nullableOptional

The description of the SMS integration.

statusstring · enumOptionalPossible values:
isDefaultbooleanOptional

Flag to indicate if the app integration SMS setting is default. By default, it is false.

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

{
  "appIntegrationId": "text",
  "name": "text",
  "username": "text",
  "password": "text",
  "phoneNumber": "text",
  "description": "text",
  "status": "0 - Inactive",
  "isDefault": true
}
{
  "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": "SMS Integration",
    "username": "smsuser",
    "password": "smspassword",
    "phoneNumber": "+1234567890",
    "description": "This is an example SMS integration",
    "status": "Active",
    "isDefault": true,
    "id": "sApKpllz4sAplsmzha"
  },
  "errors": []
}

Last updated

Was this helpful?