Update a campaign
Send only the fields you want to change. A draft or paused campaign takes any setting except agent_id and timezone, which are fixed once it’s created. While it’s running, only max_concurrent, slots, dial_cps, agent_revision and pause_after_connected can change, and they take effect straight away. For anything else, pause, edit, then resume.
A campaign keeps the version of its agent it was created with, so a later change to the agent (a new voice, a new prompt) doesn’t reach its calls on its own. Send the agent’s current revision (from GET /v2/agents/{id}) as agent_revision to move the campaign onto it. A running campaign’s next calls use it; calls already in progress finish as they started. It’s refused with agent_inputs_changed when that version needs variables some waiting contacts don’t have.
pause_after_connected is the pause rule: the campaign pauses itself, with pause_reason: connected_limit_reached, once that many calls have connected (completed, or ran to the max call length; voicemail doesn’t count). Turning it on starts the count; changing the number keeps it; null removes the rule. Near the limit it rings only as many people as it still needs, and calls in progress always finish.
"archived": true files a campaign away without touching its status, contacts or report; false brings it back. A running campaign can’t be archived, and an archived one can’t be started until you restore it.
Authorizations
Body
Pause the campaign on its own once this many calls have connected (completed or timeout; voicemail does not count). Counting starts when it is set and again on each start or resume after it paused the campaign. null removes it. May change while the campaign runs.
1 <= x <= 100000Response
Updated