Skip to main content
Version: v3New

Update Email Campaign

PATCH 

/emails/locations/:locationId/campaigns/emails/:campaignId

Update an email campaign draft

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location ID

campaignId stringrequired

Campaign ID

application/json

Bodyrequired

    namestring

    Campaign name

    editorContentstring

    Editor content to update. Required only when updating campaign content, and must be provided together with editorType. Provide HTML or plain-text string content.

    editorTypestring

    Editor type for campaign content. Required only when updating campaign content, and must be provided together with editorContent.

    Available optionshtmltext
    userIdstring

    ID of the user performing this action

application/json

Success

Schema
    idstringrequired

    Campaign ID

    sourcestring

    Source of the campaign

    sourceIdstring

    Source ID of the campaign

    namestring

    Campaign name

    statusstring

    Campaign status

    Available optionsallsentfailedarchiveddraftprocessingscheduledcancelledpaused
    campaignTypestring

    Campaign type

    campaignCategorystring

    Campaign category

    variationsobject[]

    AB test variation identifiers (available only for AB test campaigns)

    deletedbooleanrequired

    Whether the campaign is deleted

    createdAtstringrequired

    Created at timestamp

    updatedAtstringrequired

    Last updated timestamp

    traceIdstring

    Trace ID of request