Skip to main content
POST
Update a template

Headers

Version
enum<string>
required

API Version

Available options:
2021-07-28
Example:

"2021-07-28"

Body

application/json
locationId
string
required
Example:

"ve9EPM428h8vShlRW1KT"

templateId
string
required
Example:

"zYy3YOUuHxgomU1uYJty"

updatedBy
string
required
Example:

"zYy3YOUuHxgomU1uYJty"

dnd
object
required
Example:

"{elements:[], attrs:{}, templateSettings:{}}"

html
string
required
Example:

""

editorType
enum<string>
required
Available options:
html,
builder
previewText
string
Example:

"zYy3YOUuHxgomU1uYJty"

isPlainText
boolean
Example:

"false"

usedEmailAI
boolean

Whether Email AI was used

Example:

false

Response

Success

ok
string

ok

Example:

"true"

traceId
string

trace id

Example:

"0c52e980-41f6-4be7-8c4b-32332ss"

previewUrl
string

preview url

Example:

"https://example.com"

templateDownloadUrl
string

template data download url

Example:

"https://example.com"

versionId
string

version id of the saved template

Example:

"507f1f77bcf86cd799439011"

Last modified on March 8, 2026