Skip to main content
PATCH
Update Email
You can update an email’s metadata and replace its body with either raw HTML or structured blocks. The double opt-in confirmation email (consent.doubleOptInEmailId in tracking settings) can be edited here too. A new body for it must keep the {{DOUBLE_OPT_IN_URL}} link, otherwise the request returns 400 and nothing is saved.

Request

string
required
Email ID.
string
Email name.
string
Email subject line.
string
Inbox preview text. Use null to clear it.
string
Raw HTML body. Provide either html or blocks, not both.
array
Structured email blocks. Provide either blocks or html, not both. Put block styling under styles; top-level style keys like backgroundColor, backgroundOpacity, textColor, textAlign, borderColor, borderWidth, and borderRadius are normalized into styles.

Responses