Skip to main content
PATCH
Update a campaign
Anything you leave out stays as it is. In the playground, only fill the fields you mean to change. The fields follow the same rules as Create a campaign.
  • Start or pause: send "isActive": true to start dialing, or "isActive": false to pause. Starting is refused with no_available_credits if your company doesn’t have enough credits.
  • Customer lists: customerListIds replaces the campaign’s lists. To add one, send the current IDs plus the new one. Adding a list to a running campaign starts calling its contacts.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string<uuid>
required

The campaign's id.

Body

application/json
name
string

Surrounding spaces are trimmed.

Required string length: 1 - 100
Example:

"September renewals"

workingDays
enum<string>[]

Days the campaign may call.

Minimum array length: 1
Available options:
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
Example:
agentId
string<uuid>

The outbound agent that makes the calls. Needed before the campaign can dial.

Example:

"0d6a3f7e-5b8c-4b1e-9a51-2f1d7c9e4a10"

customerListIds
string<uuid>[]

Replaces the campaign's lists. To add one, send the current IDs plus the new one.

Example:
isActive
boolean

true starts dialing, false pauses. Starting is refused if your company doesn't have enough credits.

Example:

false

workingStartTime
string

Time of day calls may start, as HH:mm (24-hour).

Example:

"09:00"

workingEndTime
string

Time of day calls must stop, as HH:mm. If it's earlier than workingStartTime, the window runs past midnight.

Example:

"17:00"

continueOvernight
boolean

Which day the hours after midnight belong to. See Overnight windows.

Example:

false

maxLines
integer

How many contacts the campaign dials in each batch. No more than your company's line limit.

Required range: 1 <= x <= 100
Example:

5

maxRetries
integer

How many more times to call a contact who didn't answer.

Required range: 0 <= x <= 10
Example:

2

retryDuration
integer

Seconds to wait before retrying a contact. If you leave it out, the wait isn't guaranteed, so set it explicitly.

Required range: 0 <= x <= 12000
Example:

3600

description
string

Free text for your own reference.

Response

The updated campaign.

message
string
Example:

"Campaign updated successfully"

data
object