update_campaign
Patch any subset of fields on an existing campaign. NOTE: structural edits (sequence, language, audience, accounts) are rejected on an ACTIVE campaign, pause it first (set status:'paused'), make the edit, then resume. You can pause and edit in one call by sending status:'paused' alongside the change. sequence must be a JSON array of steps (never a stringified tree).
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 campaign name. | |
| status | No | Lifecycle status. Switching to 'active' triggers launch validation. | |
| language | No | Language the sequence is sent in: "" (as written, default), "auto" (each prospect's LinkedIn profile language) or an ISO 639-1 code like "de" or "ar". Not the same as the workspace inbox language (what replies are translated into). With a fixed language, every message step needs a `translations[lang]` entry before launch. With auto, missing languages are translated by the server the first time a prospect needs one. On every save the server keeps only translations the setting can use: a fixed language keeps only its own (switching German to Arabic drops the German ones), "" keeps none, auto keeps all. | |
| schedule | No | Campaign sending window { enabled, timezone, days, startDate, endDate, startTime, endTime }. | |
| sequence | No | Full branching tree (replaces the existing sequence). LIMITS: up to 200 steps total and 25 nesting levels. Must be a JSON array, not a stringified tree. | |
| accountIds | No | Sender account ids (from list_accounts) that run this campaign. A structural change: pause an active campaign first. | |
| campaign_id | Yes | Id of the campaign (from list_campaigns). | |
| dailyLimits | No | Merged into the campaign's existing caps per action: actions you send are overwritten, actions you omit are left alone. To lift a cap, send that action as 0 (a non-positive campaign cap means uncapped, and the account's own limits then govern alone). Totals per day for the whole campaign across all senders, not per account. See create_campaign for the full semantics. | |
| audienceData | No | Same shapes as create_campaign's audienceData. For linkedin_search, a new url starts a fresh background import. | |
| audienceSource | No | linkedin_urls, csv, lead_list or linkedin_search. The shape of audienceData depends on it. A structural change: pause an active campaign first. | |
| sourceLanguage | No | The language the sequence copy is written in, ISO 639-1 ("" = let the server detect it). Prospects who'd get this language receive the copy as written, and a fixed `language` equal to it needs no translations. Copy may mix languages (e.g. Arabic with English terms): name the main one. |