Update campaign
update_campaignEdit a draft campaign: name, subject, preheader, from_address (a verified sender), reply_to, document (email design JSON) and audience ({kind:list,id} | {kind:segment,id} | {kind:tag,name}). Only drafts can be edited. Errors: campaign_not_editable, invalid_address, invalid_document, invalid_field, not_found. Next: send_campaign_test, then send_campaign.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The campaign id (cmp_...). | |
| name | No | ||
| subject | No | Subject line; variables like {{FIRST_NAME|there}} are allowed. | |
| audience | No | {kind:"list",id} | {kind:"segment",id} | {kind:"tag",name}. | |
| document | No | Email design document: {version:1, style, subject, blocks:[...]}. | |
| reply_to | No | ||
| preheader | No | ||
| from_address | No | Sender address on a verified domain, such as news@example.com. |