Overlay templates
Create an overlay template
Creates an overlay template. The HTML is validated, including Liquid syntax and the customer attributes it uses. Use GET /templates/overlay/brand-lookups to get the brand ids you can use in brandSettings.
post/templates/overlay
Request
- Base URLhttps://api5.optimove.net/content/v1
- URLhttps://api5.optimove.net/content/v1/templates/overlay
- 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 template was created.
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.