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
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format By default – json |
id | int | 1 | Yes | Campaign ID |
name | string | "Clone" | No | New campaign name By default – "Clone of ..." |
Request example
{
"id": 1,
"name": "Clone",
"token": "abcdefghijklmnqrstuvwxyz"
}
Response example
{
"data": {
"saved_id": 2
},
"error": 0,
"error_text": "Successful operation"
}
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
saved_id | int | New campaign ID |