Update OSM Template
This API allows you to update an OSM template as per your requirements.
Rate Limit
The rate limit is 100 RPM.Authorizations
The API request is authenticated through Basic Authentication. This sends a Base64-encoded string containing your username and password with every API request.
It encodes a username:password string in Base64 and appends the encoded string with Basic . This string is included in the authorization header:
{"Authorization: "Basic Base64_ENCODED_WORKSPACEID_APIKEY=="}
Follow these steps to obtain the username and password from the MoEngage Dashboard:
- Navigate to Settings > Account > APIs.
- Copy the following details:
- Username: Under Workspace ID (earlier App ID), click the copy icon.
- Password: In the API keys section, click the copy icon in the Campaign report/Business events/Custom templates/Catalog API tile.
Body
The updated details for the OSM template.
The unique identifier generated by MoEngage during template creation.
Details about the template payload.
Updates template information such as name, version, and updater details.
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.
Response
Template updated successfully.
The unique ID of the updated template.