POST
/
sms_templates
/
{id}
curl --request POST \
  --url https://api.pocketflows.com/sms_templates/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "message": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "message": "<string>",
  "estimated_sms_segments": 123,
  "estimated_segments": {
    "sms": 123,
    "mms": 123
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the SMS template

Body

application/json

Response

200 - application/json

The updated SMSTemplate object

The response is of type object.