Edit a campaign
update_campaignChange a campaign's settings and/or replace its ordered steps. Editing the steps of a running campaign needs the operator's approval when approval is on. Requires the manage_campaigns scope.
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": {
"campaign_id": "<campaign_id>"
},
"name": "update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. | |
| steps | No | Ordered steps. email: {type:"email", variants:[{subject, body, weight?}] or subject+body, condition?, reply_in_thread?}. wait: {type:"wait", days, business_days?}. task: {type:"task", title, due_in_days?, kind? (task|call|meeting), assignee? (human|agent), wait_for_done?}. Templates: {{first_name}} {{last_name}} {{name}} {{email}} {{title}} {{company.name}} {{company.domain}} {{fields.<key>}} {{sender.name}}, with {{var | default: "text"}}. | |
| footer | No | Relay identities only: full (default, your text plus the sender, postal address and unsubscribe link) or own (your step body is the whole message; set opt_out_line). | |
| window | No | ||
| stop_on | No | ||
| strategy | No | New strategy text. | |
| timezone | No | IANA zone. | |
| daily_cap | No | ||
| send_days | No | ||
| skip_dates | No | ||
| campaign_id | Yes | Campaign id. | |
| description | No | New description. | |
| identity_id | No | Sending identity id. | |
| track_opens | No | ||
| opt_out_line | No | With footer own: the exact words your body uses to let a reader opt out, for example reply "no". Every email body must contain it. | |
| timezone_mode | No | contact or fixed. | |
| idempotency_key | No | Optional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe. |