✨ 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/osm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_template_id": "81e1a740-3e57-4c70-8ec7-ffc84d576498",
"update_campaigns": false,
"basic_details": {
"payload": "<html><body><h1>Updated HTML Content</h1></body></html>"
},
"meta_info": {
"template_name": "AD template updated API 1",
"template_id": "133434477456",
"template_version": "2",
"updated_by": "testuser@moengage.com"
}
}
'{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa"
}This API updates an OSM template as per your requirements.
curl --request PUT \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/osm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_template_id": "81e1a740-3e57-4c70-8ec7-ffc84d576498",
"update_campaigns": false,
"basic_details": {
"payload": "<html><body><h1>Updated HTML Content</h1></body></html>"
},
"meta_info": {
"template_name": "AD template updated API 1",
"template_id": "133434477456",
"template_version": "2",
"updated_by": "testuser@moengage.com"
}
}
'{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa"
}Documentation Index
Fetch the complete documentation index at: https://moengage-ios-release-notes-breaking-changes-doc-1961.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 OSM template.
The unique identifier generated by MoEngage during template creation.
Details about the template payload.
Show child attributes
Updates template information such as name, version, and updater details.
Show child attributes
Flag to update all campaigns currently using this template to the newer version.
true: All campaigns running with this template will be updated.false: A new version of the template is created; existing campaigns remain unchanged.Template updated successfully.
The unique ID of the updated template.
Was this page helpful?