Skip to main content
PATCH
Update Email Blocks

Update Email Blocks

You can replace an email body with raw HTML or structured blocks. You can also mutate an existing block between text and html.

Request

emailId
string
required
Email ID.
html
string
Raw HTML body. Replaces all blocks with a native HTML body.
blocks
array
Structured email blocks. Replaces all existing blocks. Put block styling under styles; top-level style keys like backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles.
blockId
string
Existing block ID to mutate.
type
string
New block type. Type mutation supports text and html.
content
string
Optional replacement content for the mutated block.

Responses