Skip to main content
PATCH
Update email template

Authorizations

Authorization
string
header
required

Organization API key, sent as Authorization: Bearer boom_org_....

Path Parameters

templateId
string
required

Email template id.

Minimum string length: 1

Body

application/json
name
string
Minimum string length: 1
subject
string
Minimum string length: 1
document
object

Block-builder content. Send exactly one of document or html.

html
string

Hand-written HTML (the template becomes an HTML template). Sanitized on save — scripts, event handlers and external stylesheets are removed and listed in removed. Variables use the same {{path}} grammar.

Minimum string length: 1
fromSenderId
string | null

Sender id to send From. Must be on the verified domain (usableAsFrom in journeys_email_templates). Null/omitted = the org default.

replyToSenderId
string | null

Sender id for Reply-To. Null/omitted = the org default.

status
enum<string>

PUBLISHED makes it usable by SEND_EMAIL nodes; DRAFT withdraws it, and journeys that send it will then fail to send.

Available options:
DRAFT,
PUBLISHED
confirm
boolean
default:false

Must be true to change a template that is PUBLISHED.

Response

Success

template
object
required
removed
string[]
required

What the HTML sanitizer removed. Empty for block content.