Skip to main content
PATCH
Update Campaign Variation
Renames a variation or replaces its content. Send at least one field; fields you omit stay as they are. Replacement blocks without a footer get the company’s default footer. Content (blocks, html, subject, previewText, emailTheme, fontFamily) can only change once the variation is ready. To change it with AI instead, use Edit variation with AI. Updating a variation never changes the campaign email; use it for that.

Request

string
required
Campaign ID. Email campaigns only.
string
required
Variation ID.
string
New name, 1 to 120 characters.
string | null
What this version changes, up to 500 characters. null clears it.
array
Replacement email blocks. Send blocks or html, not both.
string
Replacement HTML, converted to blocks.
string | null
The subject this variation uses. null keeps the email’s subject.
string | null
The preview text this variation uses. null keeps the email’s.
object | null
The variation’s own email theme (presetId, colors, typography, layout). A partial theme is completed with defaults. null uses the email’s theme. Using the variation puts its theme on the email.
string | null
The variation’s own body font stack, up to 500 characters. null uses the email’s font.
object | null
Where the variation sits on the editor canvas, as { "x": number, "y": number } in canvas pixels (each within ±1,000,000). null lets the canvas place it automatically. Moving a variation does not change its updatedAt.

Response

object
The updated variation.
string[]
Block fields that were accepted but had no effect. Omitted when there are none.