Skip to main content

Clone a trigger campaign

Description

Clones content and settings of a trigger campaign to a newly created campaign.

Request URL

Method: POST

https://example.com/api/v1.1/campaigns/triggers/clone

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
idint1YesCampaign ID
namestring"Clone"NoNew campaign name
By default – "Clone of ..."
is_activeboolfalseNoCampaign status

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 96,
"name": "Clone trigger campaign #1",
"is_active": false
}

Response example

{
"data": {
"saved_id": 97
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
saved_idintNew campaign ID