Update a campaign
update_campaignChange a campaign. Only sections you pass change — but sequence, accounts and tagIds, when passed, REPLACE the existing ones entirely. Replacing sequence rebuilds every step from what you pass: keep a step's A/B test by passing its variants again, without the step's own subject + body (get_campaign shows variant A there too; a step with only subject + body becomes a single variant A). Steps and variants get NEW ids — read get_campaign again before send_test_email. A running campaign's sequence cannot be replaced; pause it first (the whole call is then rejected and nothing changes).
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 | Campaign id (UUID). | |
| name | No | ||
| tagIds | No | REPLACES the campaign tags ([] removes them all). | |
| accounts | No | REPLACES the attached mailbox set — the mailboxes the campaign sends from when settings.useAllAccounts is false. | |
| schedule | No | Sending schedule. | |
| sequence | No | REPLACES the whole sequence. | |
| settings | No | The campaign Settings page: tracking, stop rules, lead skipping by verification, text mode, unsubscribe, sending pattern, A/B optimization, keep active when leads run out, which mailboxes send. |