Update Campaign
update_campaignUpdate a draft campaign. Only the fields you pass are changed. list_ids REPLACES the full current list set (and replaces a segment target): to add or remove a list, prefer add_lists_to_campaign / remove_lists_from_campaign. segment_id sends to one segment instead of lists. Also changes exclusions (exclude_list_ids, exclude_segment_ids, exclude_tag_ids: each replaces the stored set, an empty array clears it), frequency_cap, track_opens, track_clicks and inbox_tracking (Inbox Tracker needs the paid add-on and uses its quota). Settings you omit keep their stored value. Setting scheduled_at publishes the campaign for sending, so it takes two steps: call first without confirm to get a preview (nothing is changed), get an explicit yes from the user, then call again with confirm: true. Set dry_run: true to see the exact fields that would be sent without changing anything.
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 |
|---|---|---|---|
| html | No | HTML email content | |
| name | No | Campaign name | |
| rules | No | Send rules object: limit (number of contacts), contacts_order (first or last) | |
| tag_id | No | Campaign tag ID | |
| confirm | No | Must be true when scheduled_at is set, because that schedules the campaign to send. Leave false first to get a preview; nothing is changed | |
| dry_run | No | Validate inputs and show what would be sent without changing anything, even when confirm is true | |
| subject | No | Email subject line | |
| list_ids | No | List IDs to send to (max 150). REPLACES the campaign's full recipient list set, and replaces a segment if the campaign sends to one: to add a list, include the current lists as well (or use add_lists_to_campaign) | |
| reply_id | No | Pre-configured reply email ID | |
| plain_text | No | Plain text content | |
| segment_id | No | One segment ID to send to. Replaces the campaign's lists. Give list_ids or segment_id, not both | |
| campaign_id | Yes | Campaign ID | |
| pause_rules | No | pause rules object as in the panel: pause_target, pause_limit, pause_criteria, pause_condition | |
| reply_email | No | Reply-to email address | |
| report_spam | No | Add a report-abuse link | |
| sender_name | No | Sender display name (give together with sender_email) | |
| track_opens | No | Open tracking for this campaign; false turns the open pixel off. Omit to keep the stored value | |
| scheduled_at | No | Schedule datetime (YYYY-MM-DD HH:MM:SS, account timezone). Setting it PUBLISHES the campaign for sending at that time, so it requires confirm: true | |
| sender_email | No | Sender email address (give together with sender_name) | |
| track_clicks | No | Click tracking for this campaign; false turns link tracking off. Omit to keep the stored value | |
| frequency_cap | No | true skips contacts already emailed within the account's frequency-cap window; false turns it off. Omit to keep the stored value | |
| inbox_tracking | No | true turns Inbox Tracker on for this campaign (uses Inbox Tracker quota). Needs the paid Inbox Tracker add-on: the API rejects true on accounts without it. Omit to keep the stored value | |
| viewin_browser | No | Add a view-in-browser link | |
| email_preheader | No | Email preheader text (max 150 chars) | |
| exclude_tag_ids | No | Tag IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them | |
| exclude_list_ids | No | List IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them | |
| mailing_preference | No | Add a mailing-preference link | |
| exclude_segment_ids | No | Segment IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them | |
| permission_reminder | No | Permission reminder text (3-150 chars) |