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
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 ..." |
is_active | bool | false | No | Campaign status |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 96,
"name": "Clone trigger campaign #1",
"is_active": false
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<name>Clone trigger campaign #2</name>
<id>95</id>
<is_active>true</is_active>
</xml>
Response example
- JSON
- XML
{
"data": {
"saved_id": 97
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<saved_id>96</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 |