Skip to main content
PATCH
Update a campaign

Authorizations

Authorization
string
header
required

Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.

Path Parameters

campaign_id
string
required

The campaign's id (cmp_…).

Body

application/json
agent_revision
integer
Required range: x >= 1
always_on
boolean
archived
boolean

true archives the campaign, false restores it. Status, contacts and settings are unchanged either way. null is rejected.

budget_paise
integer
caller_id_max_per_hour
integer
caller_ids
string[]
caller_name
string
dial_cps
number
end_date
string
fallback_number_id
string | null

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.

final_results
boolean
keyterms
string[] | null

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.

Maximum array length: 100
Required string length: 1 - 50
keyterms_auto_learn
boolean
max_concurrent
integer
max_duration_secs
integer
name
string
notify_emails
string[]
pause_after_connected
integer | null

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.

Required range: 1 <= x <= 100000
phone_number_id
string | null

One of your phone numbers (GET /v2/phone-numbers) that every call of this campaign rings from, through its own provider connection. null clears it. Exclusive with caller_ids.

pool_id
string | null

One of your phone pools (GET /v2/phone-pools): each contact rings from the number the pool picks. null clears it. Exclusive with phone_number_id and caller_ids.

re_attempt_period_secs
integer
redial_gap_secs
integer
retry_count
integer
retry_slots
object[]
skip_called_before
boolean
slots
object[]
start_date
string
tier
string
webhook_url
string
worker_pool
string[]

Response

Updated