curl --request PATCH \
--url https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "active",
"retry_policy": {
"max_attempts": 5,
"interval_hours": 12
}
}
'import requests
url = "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}"
payload = {
"status": "active",
"retry_policy": {
"max_attempts": 5,
"interval_hours": 12
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'active', retry_policy: {max_attempts: 5, interval_hours: 12}})
};
fetch('https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'active',
'retry_policy' => [
'max_attempts' => 5,
'interval_hours' => 12
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}"
payload := strings.NewReader("{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "42",
"name": "Q3 renewals",
"mode": "sequential",
"status": "active",
"calling_policy": {
"answer_wait": 25,
"after_call": 10,
"recording": true
},
"queue_policy": {
"lock_size": 5,
"refill_amount": 3
},
"retry_policy": {
"max_attempts": 3,
"interval_hours": 24
},
"schedule_policy": {
"start_date": "2026-08-10",
"start_time": "09:00"
},
"ttl_policy": {
"mode": "campaign",
"hours": 72
},
"waterfall_order": [
"favorite",
"rescheduled",
"retry",
"fresh"
],
"agent_permissions": {
"skip": true,
"remove": false,
"reorder": false
},
"call_script_id": "310",
"survey_id": null,
"created_at": "2026-08-01T09:15:00.000Z",
"updated_at": "2026-08-04T11:42:07.000Z",
"archived_at": null,
"deleted_at": null
}{
"statusCode": 400,
"message": "Validation error",
"error": "Bad Request",
"correlationId": "YevPQs",
"subErrors": [
"incorrect email"
]
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"statusCode": 404,
"message": "Not Found",
"error": "Not Found",
"correlationId": "YevPQs"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"error": "Unprocessable Entity",
"correlationId": "YevPQs"
}{
"statusCode": 429,
"message": "Too Many Requests",
"error": "Too Many Requests",
"correlationId": "YevPQs"
}{
"statusCode": 500,
"message": "Internal Server Error",
"error": "Internal Server Error",
"correlationId": "YevPQs"
}Update a dialer campaign
Partially updates the campaign’s configuration and/or moves it through its lifecycle. Every key is optional and an omitted key is left unchanged; a supplied policy bundle replaces that bundle wholesale. Legal status transitions: initializing → active | archived; active ↔ inactive; active → archived; inactive → archived; archived → inactive. An illegal transition — including deleted, which only the delete call may set — returns 422. Status changes never conflict with running work: in-flight dialing sessions drain naturally once the status is no longer active.
curl --request PATCH \
--url https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "active",
"retry_policy": {
"max_attempts": 5,
"interval_hours": 12
}
}
'import requests
url = "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}"
payload = {
"status": "active",
"retry_policy": {
"max_attempts": 5,
"interval_hours": 12
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'active', retry_policy: {max_attempts: 5, interval_hours: 12}})
};
fetch('https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'active',
'retry_policy' => [
'max_attempts' => 5,
'interval_hours' => 12
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}"
payload := strings.NewReader("{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/dialer/campaigns/{campaignId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"active\",\n \"retry_policy\": {\n \"max_attempts\": 5,\n \"interval_hours\": 12\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "42",
"name": "Q3 renewals",
"mode": "sequential",
"status": "active",
"calling_policy": {
"answer_wait": 25,
"after_call": 10,
"recording": true
},
"queue_policy": {
"lock_size": 5,
"refill_amount": 3
},
"retry_policy": {
"max_attempts": 3,
"interval_hours": 24
},
"schedule_policy": {
"start_date": "2026-08-10",
"start_time": "09:00"
},
"ttl_policy": {
"mode": "campaign",
"hours": 72
},
"waterfall_order": [
"favorite",
"rescheduled",
"retry",
"fresh"
],
"agent_permissions": {
"skip": true,
"remove": false,
"reorder": false
},
"call_script_id": "310",
"survey_id": null,
"created_at": "2026-08-01T09:15:00.000Z",
"updated_at": "2026-08-04T11:42:07.000Z",
"archived_at": null,
"deleted_at": null
}{
"statusCode": 400,
"message": "Validation error",
"error": "Bad Request",
"correlationId": "YevPQs",
"subErrors": [
"incorrect email"
]
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"statusCode": 404,
"message": "Not Found",
"error": "Not Found",
"correlationId": "YevPQs"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"error": "Unprocessable Entity",
"correlationId": "YevPQs"
}{
"statusCode": 429,
"message": "Too Many Requests",
"error": "Too Many Requests",
"correlationId": "YevPQs"
}{
"statusCode": 500,
"message": "Internal Server Error",
"error": "Internal Server Error",
"correlationId": "YevPQs"
}Authorizations
HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).
Path Parameters
Dialer campaign ID.
^[1-9][0-9]*$Body
Body of the campaign update call. Every key is optional — an omitted key is left unchanged. status drives the lifecycle transition; deleted is never a valid target here (use the delete call).
Human-readable campaign name. Leading and trailing whitespace is trimmed before validation, so a blank or whitespace-only name is rejected with 400 (name should not be empty in subErrors).
1 - 255\S"Q3 renewals — EMEA"
Dialing mode.
sequential, parallel "parallel"
Target lifecycle status. Legal transitions: initializing → active | archived; active ↔ inactive; active → archived; inactive → archived; archived → inactive. A patch that leaves the status unchanged is a no-op. deleted passes schema validation but is always rejected with 422 — only the delete call sets it.
initializing, active, inactive, archived, deleted "active"
Per-call behaviour bundle. Every knob is optional — an omitted knob keeps the service default. Only the knobs documented here are stored — any other key in the bundle is silently dropped.
Show child attributes
Show child attributes
Allocation-batch and dynamic queue-sizing bundle. Every knob is optional.
Show child attributes
Show child attributes
Re-dial rules bundle. Every knob is optional.
Show child attributes
Show child attributes
Campaign start-window bundle. Every knob is optional.
Show child attributes
Show child attributes
Contact-eligibility expiry bundle — drives how long an allocated contact stays held. Every knob is optional.
Show child attributes
Show child attributes
Ordered, duplicate-free subset of the waterfall categories. Contacts are served tier by tier in this order.
favorite, rescheduled, retry, fresh ["favorite", "rescheduled", "retry", "fresh"]
Booleans gating what an agent may do to their queue. Deny by default — an omitted key is false.
Show child attributes
Show child attributes
Call script to link to the campaign; null clears the link, an omitted key leaves it unchanged. Sent as an integer in requests; responses return the id as a string.
x >= 1310
Survey to link to the campaign; null clears the link, an omitted key leaves it unchanged. Sent as an integer in requests; responses return the id as a string.
x >= 144
Response
The updated campaign.
A dialer campaign. Identifiers are returned as strings because they are 64-bit integers server-side.
Campaign ID.
"42"
Human-readable campaign name.
"Q3 renewals"
Dialing mode.
sequential, parallel "sequential"
Lifecycle status. initializing: created, membership backfill pending. active: the only dialable state. inactive: paused, fully reversible. archived: review/analytics state, not dialable, exits only back to inactive. deleted: soft-deleted, terminal.
initializing, active, inactive, archived, deleted "active"
Per-call behaviour bundle. Every knob is optional — an omitted knob keeps the service default. Only the knobs documented here are stored — any other key in the bundle is silently dropped.
Show child attributes
Show child attributes
Allocation-batch and dynamic queue-sizing bundle. Every knob is optional.
Show child attributes
Show child attributes
Re-dial rules bundle. Every knob is optional.
Show child attributes
Show child attributes
Campaign start-window bundle. Every knob is optional.
Show child attributes
Show child attributes
Contact-eligibility expiry bundle — drives how long an allocated contact stays held. Every knob is optional.
Show child attributes
Show child attributes
Ordered, duplicate-free subset of the waterfall categories.
favorite, rescheduled, retry, fresh ["favorite", "rescheduled", "retry", "fresh"]
Booleans gating what an agent may do to their queue. Deny by default — an omitted key is false.
Show child attributes
Show child attributes
Linked call-script ID; null when none.
"310"
Linked survey ID; null when none.
"44"
Creation timestamp (ISO 8601, UTC).
"2026-08-01T09:15:00.000Z"
Last-update timestamp (ISO 8601, UTC).
"2026-08-04T11:42:07.000Z"
When the campaign entered archived; cleared on exit, so non-null only while the status is archived.
null
Soft-delete timestamp; null unless the campaign has been deleted.
null