Skip to main content

Clone campaign

Description

Clones campaign content and settings to a newly created campaign.

Request URL

Method: POST

https://example.com/api/v1.1/campaigns/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 ..."

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"name": "Clone"
}

Response example

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

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
saved_idintNew campaign ID