latestSwagger 2.02026-08-10148196271.0 KB

afaab604b58c

templates

Update embedded message template

post/api/templates/embedded/update

Request body

bodystring

Body text of the embedded message

campaignDataFieldsobject

Campaign-level data fields available as {{field}} merge parameters during message rendering. These fields are overridden by user and event data fields of the same name.

campaignIdinteger

Campaign ID

clientTemplateIdstring

Client template ID. Used as a secondary key to reference the template

isDefaultLocaleboolean

Ask your Iterable CSM to enroll you in the beta for this feature.

Identifies if the locale associated with the response is the template's default. If empty or flexible default locales are not enabled for the project, the project's default locale is assigned.

localestring

The locale for the content in this request. Leave empty for default locale. Iterable automatically sends the content with a locale that matches a user profile's <code>locale</code> field.

messageTypeIdinteger

Message type ID

namestring

Name of the template

payloadobject

Payload

placementIdobject

Placement ID that this template is associated with

templateIdinteger required

Embedded message template ID

titlestring

Title of the embedded message

Response

successful operation