Delete Campaign Variation
Deletes one variation from a draft or paused campaign. The campaign must keep at least one variation. Deleting the last extra variation on an AB_TEST campaign sets the type back to STANDARD. Returns a permalink that opens the message step in the editor.
Authorization
Authorization In: header
Path Parameters
Project that owns the campaign.
Campaign that owns the variation.
Variation to delete. emailMarketing_getEmailCampaign.messages[].id or emailMarketing_createCampaignVariation.id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/projects/string/email-campaigns/string/variations/string"{ "message": "string", "permalink": "string"}Create Campaign Variation
Adds a variation to a draft or paused campaign. The new variation copies the first one, then applies `changes`. Same content fields as Update Campaign Message, including subjectHTML, subjectJSON, bodyHTML, bodyJSON, previewTextHTML, and previewTextJSON. A second variation on a STANDARD campaign sets the type to AB_TEST. Returns the variation and a permalink that opens the message step in the editor.
Update Campaign Message
Updates one campaign message's sender or content. Read Get Email Campaign for messages[].id, then pass campaignId, messageId, and changes. Supports STANDARD, AUTOMATION, and AB_TEST campaigns while DRAFT or PAUSED; omitted fields are unchanged. Use this endpoint to set fromEmailUsername, fromName, and fromDomain on workflow emails. Use Update Email Campaign for workflowId and workflowStepId links.