Update a campaign
Changes only the fields you send. status can’t be set here, and direction changes only in draft.
config merges shallowly: a key you send replaces the stored value, null deletes it, and nested objects such as analysis_schema are replaced whole. A key outside CampaignConfig returns 400 (unrecognized_keys), even as null. So does a change that makes a valid config invalid.
lead_list_ids and config.knowledge_base_ids replace the attached set ([] detaches all). Config changes reach calls queued after the update, not ones already queued.
Headers
Makes a retry safe. A 2xx response is stored for 24 hours per account, and a retry with the same key gets it back with Idempotent-Replay: true instead of running again. Errors aren't stored, so a retry after one runs fresh. The key isn't tied to a path or body: use a new key for every different request. A malformed key gets 400.
8 - 255^[A-Za-z0-9_-]+$"a1b2c3d4-e5f6-7890-abcd-ef0123456789"
Body
Send only the fields you change. An empty body returns 400, and so does status: use start, pause, resume and stop instead. Config changes apply to calls queued after the update. Calls already queued keep the old config.
Merged shallowly into the stored config: a sent key replaces its value (nested objects whole), an omitted key stays, null deletes it. A key that isn't a CampaignConfig field returns 400, even as null. The merged result is validated too: {"mode": "live"} returns 400 while the stored config keeps a legacy-only field or a model outside live.llm in GET /v1/models.
Response
Campaign updated
A campaign as list, get, create and update return it. Only list and get include inbound_phone_numbers.