Skip to main content
PUT
/
custom-templates
/
sms
Update SMS Template
curl --request PUT \
  --url https://api-0{dc}.moengage.com/v1.0/custom-templates/sms \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "external_template_id": "d05a44f0-a7cf-471a-bcb6-63054800a367",
  "update_campaigns": false,
  "basic_details": {
    "message": "Hi {{UserAttribute['first_name']}}, your order has been delivered!"
  },
  "meta_info": {
    "template_name": "Shipping Update Template V2",
    "updated_by": "jane.doe@example.com",
    "template_version": "2"
  }
}
EOF
{
  "external_template_id": "eca024b7-a8ea-4f31-9154-5b80c85d18a9"
}

Rate Limit

The rate limit is 100 RPM.

Authorizations

Authorization
string
header
required

Basic Authentication using Workspace ID as username and the 'Campaign report/Business events/Custom templates' API key as the password.

Body

application/json

The updated details for the SMS template.

external_template_id
string<uuid>
required

This field contains the unique identifier that is generated by MoEngage during the template creation.

basic_details
object
required

This field contains the basic details of the SMS template.

meta_info
object
required

This field contains information about the template being created.

update_campaigns
boolean
default:false

If true, this field contains a flag used to update all active campaigns currently using the template being updated to the newer version (being updated in this request).

Response

Template updated successfully.

external_template_id
string<uuid>

The unique ID of the updated template.