latestSwagger 2.02026-08-10148196271.0 KB

afaab604b58c

templates

Update email template

post/api/templates/email/update

Request body

bccEmailsstring[]

BCC emails

cacheDataFeedobject

Cache data feed lookups for 1 hour

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.

ccEmailsstring[]

CC emails

clientTemplateIdstring

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

creatorUserIdstring

Creator User Id

dataFeedIdnumber

[Deprecated - use dataFeedIds instead] Id for data feed used in template rendering

dataFeedIdsnumber[]

Ids for data feeds used in template rendering

fromEmailstring

From email (must be an authorized sender)

fromNamestring

From name

googleAnalyticsCampaignNamestring

Google analytics utm_campaign value

htmlstring

HTML contents

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 will automatically send the content with locale that matches a 'locale' field in the user profile.

mergeDataFeedContextobject

Merge data feed contents into user context, so fields be referenced by {{field}} instead of [[field]]

messageTypeIdnumber

Message Type Id

namestring

Name of the template

plainTextstring

Plain text contents

preheaderTextstring

Preheader text

replyToEmailstring

Reply to email

subjectstring

Subject

templateIdinteger required

Email Template ID

Response

successful operation