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
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"name": "Clone"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>1</id>
<name>Clone</name>
</xml>
Response example
- JSON
- XML
{
"data": {
"saved_id": 87
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<saved_id>88</saved_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
saved_id | int | New campaign ID |