✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request PUT \
--url https://api-{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"
}This API updates an SMS template by specifying its external template ID. You can specify in the request whether the updated version of the template can be used in active campaigns.
curl --request PUT \
--url https://api-{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"
}Documentation Index
Fetch the complete documentation index at: https://moengage-crashes-in-debug-feedback.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
The updated details for the SMS template.
This field contains the unique identifier that is generated by MoEngage during the template creation.
This field contains the basic details of the SMS template.
Show child attributes
This field contains information about the template being created.
Show child attributes
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).
Template updated successfully.
The unique ID of the updated template.
Was this page helpful?