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
One of your phone numbers (GET /v2/phone-numbers) on a different carrier than the numbers this campaign calls from. When a carrier refuses a call before anything is answered, the contact is rung once more from this number, at no attempt cost, at most once per contact per day. null clears it. Not with caller_ids.
Words speech recognition listens for on this campaign's calls: brand, product, place and people names. Up to 100 terms, each 1-50 characters and at most 5 words, in any script, with no commas, new lines or tabs. Spaces are tidied and repeats (ignoring case) dropped, keeping the first spelling. A call hears the campaign's terms first, then its agent's, up to 200 in all. An array replaces the whole list; [] or null clears it. May change while the campaign runs: the next call uses the new list.
1001 - 50Pause 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