campaign.clone
The campaign.clone command is used to clone a campaign.
TR50 Request
{
"cmd": {
"command": "campaign.clone",
"params": {
"id": "537a3fa6d15a702de0000007",
"name": "Cloned campaign",
"failedOnly": false
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
id |
String |
Yes |
The unique identifier of the campaign to clone. |
name |
String |
|
The name that can be used for the cloned campaign. If a name is not provided, the name will be copied from the original campaign. |
failedOnly |
Boolean |
|
If only the failed campaign task items should be cloned from the original campaign. Defaults to false: all of the campaign items will be cloned. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": {
"id": "537a3fa6d15a702de0000008"
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
id |
String |
The unique identifier of the new campaign. |