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 URL
    https://api5.optimove.net/content/v1
  • URL
    https://api5.optimove.net/content/v1/templates/overlay/{id}
  • Auth
    API key in header X-API-KEY

Request body

namestring required

Template name. Must be unique (case-sensitive) among the tenant's templates.

folderIdstring uuid nullable

Folder to put the template in. Leave out for the root folder.

editorType'html' | 'visual' required

Editor the content is built with:

  • html: HTML code editor
  • visual: drag-and-drop editor

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.

idstring uuid required
campaignTemplateIdinteger required

Id of the template in Optimove campaigns.

namestring required
folderIdstring uuid nullable
editorType'html' | 'visual' required

Editor the content is built with:

  • html: HTML code editor
  • visual: drag-and-drop editor
createdAtstring date-time required
createdBystring required
updatedAtstring date-time required
updatedBystring required

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.