Skip to main content
POST
Edit Campaign Variation with AI
Changes one ready variation with AI and saves the result over it, like an edit in the editor. Say what should change in prompt, in any language. With sectionIds, only those top-level blocks change and everything else stays exactly as it is. A whole-variation edit can also give the variation its own emailTheme and fontFamily, for example when you ask for a darker look. The request runs synchronously and can take up to a minute. The campaign email does not change; use the variation for that. To compare several alternatives before choosing, use Generate Section Options or Generate Variations instead. If the variation changes while the AI is working on it (another request updates it), the edit is not saved and you get a 409: send the request again.

Request

string
required
Campaign ID. Email campaigns only.
string
required
Variation ID. It must be ready.
string
required
What should change, 1 to 2,000 characters, in any language.
string[]
Only change these top-level blocks (up to 50). Omit to change the whole variation.

Response

object
The variation, changed and saved. See List Variations for its fields.
string
What the edit changed, in a sentence.

Errors