Email Templates
Preview an email template patch
Returns the block-level before/after result of a patch without persisting it.
post/public/v1/email-templates/{templateId}/patch-preview
Path parameters
templateIdinteger required
Example:1
Request body
Example request
{
"expectedVersion": 1,
"operations": [
{
"op": "SET_NAME",
"name": "example"
}
]
}Response
Patch preview
Example response
{
"templateId": 1,
"currentVersion": 1,
"name": {
"before": "example",
"after": "example"
},
"subject": {
"before": "example",
"after": "example"
},
"blockChanges": [
{
"blockId": "example",
"changeType": "ADDED",
"before": {
"html": "example",
"text": "example"
},
"after": {
"html": "example",
"text": "example"
}
}
],
"resultHtml": "example",
"resultText": "example",
"resultContentHash": "example"
}Changes
Changed in 1 of the 2 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○