Overlay templates
Update an overlay template
Replaces an overlay template. Send every field: optional fields that are left out are reset to their defaults. Only the tenant that created a template can update it.
put/templates/overlay/{id}
Request
- Base URLhttps://api5.optimove.net/content/v1
- URLhttps://api5.optimove.net/content/v1/templates/overlay/{id}
- AuthAPI key in header X-API-KEY
Request body
Example request
{
"name": "Summer sale overlay",
"editorType": "html",
"payload": {
"html": "<div>Hi {{customer.FirstName}}, our summer sale has started.</div>",
"ttlMinutes": 2880
},
"code": {
"header": "{% assign greeting = \"Hello\" %}"
}
}Response
The updated template.
Example response
{
"name": "Summer sale overlay",
"editorType": "html",
"payload": {
"html": "<div>Hi {{customer.FirstName}}, our summer sale has started.</div>",
"ttlMinutes": 2880
},
"code": {
"header": "{% assign greeting = \"Hello\" %}"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.