Update a template
POST/emails/builder/data
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Update a template
Request
Version stringrequired
API Version
Available options
2021-04-15- application/json
- Body
- Example (auto)
Bodyrequired
locationIdstringrequired
templateIdstringrequired
updatedBystringrequired
dndobjectrequired
htmlstringrequired
editorTypestringrequired
Available options
htmlbuilderpreviewTextstring
isPlainTextboolean
usedEmailAIboolean
Whether Email AI was used
{
"locationId": "ve9EPM428h8vShlRW1KT",
"templateId": "zYy3YOUuHxgomU1uYJty",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"dnd": "{elements:[], attrs:{}, templateSettings:{}}",
"html": "",
"editorType": "html",
"previewText": "zYy3YOUuHxgomU1uYJty",
"isPlainText": "false",
"usedEmailAI": false
}
Success
- application/json
- Schema
- Example (auto)
Schema
okstring
ok
traceIdstring
trace id
previewUrlstring
preview url
templateDownloadUrlstring
template data download url
versionIdstring
version id of the saved template
{
"ok": "true",
"traceId": "0c52e980-41f6-4be7-8c4b-32332ss",
"previewUrl": "https://example.com",
"templateDownloadUrl": "https://example.com",
"versionId": "507f1f77bcf86cd799439011"
}