Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList Email CampaignsgetGet Email CampaignpostCreate Email CampaignputUpdate Email CampaignpostDuplicate Email CampaigndelDelete Email CampaignpostSend Email CampaignpostResume Sending Email CampaignpostStop Sending Email CampaignpostSend Test EmailgetCount Campaign EmailsgetGet Email StatspostCreate Campaign VariationdelDelete Campaign VariationputUpdate Campaign Message
Transactional Emails
Email MarketingCampaigns

Delete Campaign Variation

View as MarkdownAgent setup

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.

DELETE
/projects/{projectId}/email-campaigns/{campaignId}/variations/{messageId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

Project that owns the campaign.

campaignIdrequiredstring

Campaign that owns the variation.

messageIdrequiredstring

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.