Campaigns
Update campaign
Change a campaign’s name, caller ID, retries, start time or business hours while it is a draft, scheduled or paused. Send only the fields you are changing.
PUT
/
v2
/
campaign
/
{id}
Update campaign
curl --request PUT \
--url https://api.verbeo.ai/v2/campaign/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign_name": "<string>",
"phone_number_id": "<string>",
"max_retries": 123,
"retry_intervals": [
123
],
"scheduled_at": {},
"business_hours": {}
}
'import requests
url = "https://api.verbeo.ai/v2/campaign/{id}"
payload = {
"campaign_name": "<string>",
"phone_number_id": "<string>",
"max_retries": 123,
"retry_intervals": [123],
"scheduled_at": {},
"business_hours": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign_name: '<string>',
phone_number_id: '<string>',
max_retries: 123,
retry_intervals: [123],
scheduled_at: {},
business_hours: {}
})
};
fetch('https://api.verbeo.ai/v2/campaign/{id}', 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.verbeo.ai/v2/campaign/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'campaign_name' => '<string>',
'phone_number_id' => '<string>',
'max_retries' => 123,
'retry_intervals' => [
123
],
'scheduled_at' => [
],
'business_hours' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.verbeo.ai/v2/campaign/{id}"
payload := strings.NewReader("{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.verbeo.ai/v2/campaign/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/campaign/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}"
response = http.request(request)
puts response.read_bodyChanges a campaign’s settings while it is not dialling: a
And the errors every route can give.
draft (importing or not), a scheduled campaign or a paused one. To change a running campaign, pause it, update it, then resume it.
Send only the fields you are changing: anything you leave out is untouched. Its assistant, its contacts and its default_country cannot be changed: create another campaign for those.
Who may call it: any API key of the workspace; in the dashboard, an owner, admin or developer.
Path
Body
At least one field is required. Fields not listed here are ignored.Minutes before each retry, each from
1 to 10080, and no more of them than max_retries (the one you send, or the campaign’s).An ISO 8601 date and time with its offset, or
null. A time on a draft schedules it: it becomes scheduled at once if its import is done, or when the import is done. null on a scheduled campaign makes it a draft again. A paused campaign stays paused either way.Replaces the campaign’s business hours, in the shape Create campaign takes.
null clears them: calls at any time.Request
curl -X PUT "https://api.verbeo.ai/v2/campaign/0175091d-2c3b-4aef-8c45-dbbe24f7b3ff" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"max_retries": 3,
"retry_intervals": [30, 120, 1440],
"scheduled_at": "2026-11-03T14:00:00Z"
}'
Response
200 OK with the updated campaign object.
{
"success": true,
"data": {
"id": "0175091d-2c3b-4aef-8c45-dbbe24f7b3ff",
"campaign_name": "Spring renewals",
"status": "scheduled",
"max_retries": 3,
"retry_intervals": [30, 120, 1440],
"scheduled_at": "2026-11-03T14:00:00+00:00",
"updated_at": "2026-11-02T11:20:00.456789+00:00",
"…": "the rest of the campaign object"
}
}
Errors
| Code | Status | When |
|---|---|---|
VALIDATION_FAILED | 422 | An empty body, or one with none of the fields above: No fields to update. |
VALIDATION_FAILED | 422 | A field breaks its rule, as on Create campaign. More intervals than retries, counting the campaign’s own: retry_intervals: must have at most max_retries intervals. |
VALIDATION_FAILED | 422 | phone_number_id: no phone number with this id in the workspace. |
CONFLICT | 409 | The campaign is dialling: A campaign that is in-progress cannot be edited. Pause it first, then edit it and resume it. (or warmup, or dormant, in the same sentence). |
CONFLICT | 409 | The campaign is finished: A completed campaign cannot be edited., or A cancelled campaign cannot be edited. |
CONFLICT | 409 | The campaign changed while it was being edited. Reload it and try again. Its status moved on between the read and the write, for example as it started. |
NOT_FOUND | 404 | Campaign not found. |
FORBIDDEN | 403 | A dashboard member below developer: Editing a campaign requires the developer, admin or owner role. An API key acts as the owner and never gets it. |
PAYMENT_REQUIRED | 402 | A time on a draft without campaigns on the plan: Campaigns are a Pro feature. Upgrade this workspace to the Pro plan to create or start a campaign. A scheduled campaign starts by itself, so scheduling one is checked as a start is. Nothing is changed. |
Was this page helpful?
⌘I
Update campaign
curl --request PUT \
--url https://api.verbeo.ai/v2/campaign/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign_name": "<string>",
"phone_number_id": "<string>",
"max_retries": 123,
"retry_intervals": [
123
],
"scheduled_at": {},
"business_hours": {}
}
'import requests
url = "https://api.verbeo.ai/v2/campaign/{id}"
payload = {
"campaign_name": "<string>",
"phone_number_id": "<string>",
"max_retries": 123,
"retry_intervals": [123],
"scheduled_at": {},
"business_hours": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign_name: '<string>',
phone_number_id: '<string>',
max_retries: 123,
retry_intervals: [123],
scheduled_at: {},
business_hours: {}
})
};
fetch('https://api.verbeo.ai/v2/campaign/{id}', 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.verbeo.ai/v2/campaign/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'campaign_name' => '<string>',
'phone_number_id' => '<string>',
'max_retries' => 123,
'retry_intervals' => [
123
],
'scheduled_at' => [
],
'business_hours' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.verbeo.ai/v2/campaign/{id}"
payload := strings.NewReader("{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.verbeo.ai/v2/campaign/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/campaign/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaign_name\": \"<string>\",\n \"phone_number_id\": \"<string>\",\n \"max_retries\": 123,\n \"retry_intervals\": [\n 123\n ],\n \"scheduled_at\": {},\n \"business_hours\": {}\n}"
response = http.request(request)
puts response.read_body