✨ 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/inapp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa",
"update_campaigns": false,
"basic_details": {
"payload": "<html><body><h1>Hello Updated World!</h1></body></html>",
"inapp_template_type": "INAPP_HTML"
},
"meta_info": {
"template_name": "My Updated HTML Promo",
"updated_by": "jane.doe@example.com"
}
}
'{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa"
}This API updates an In-app template as per your requirements.
curl --request PUT \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/inapp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa",
"update_campaigns": false,
"basic_details": {
"payload": "<html><body><h1>Hello Updated World!</h1></body></html>",
"inapp_template_type": "INAPP_HTML"
},
"meta_info": {
"template_name": "My Updated HTML Promo",
"updated_by": "jane.doe@example.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 In-app template.
The external template ID needs to be updated. This field contains the unique identifier that is generated during the creation of the template.
Details about the template, including its payload and template type.
Show child attributes
This field will update template information, such as the name of the template and the update's details.
Show child attributes
This field contains a flag used to update all campaigns currently using the template to the newer version. When true, all running campaigns with this template will be updated. When false, no change will be made to the template used in existing campaigns.
Template updated successfully.
This field contains the unique ID corresponding to a successful custom template update. This template ID is used as header input for updates, searches, or any kind of template modifications in a later stage.
"4a1afbc5-4c31-4f19-8c23-793e27af01aa"
Was this page helpful?