Caller-ID pool
Update a caller pool number
Rename a pool number or disable it so it is excluded from caller-ID rotation without losing its call history.
PUT
/
api
/
v1
/
account
/
{account_id}
/
campaigns
/
{campaign_id}
/
pool
/
{number_id}
Update a caller pool number
curl --request PUT \
--url https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id} \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <x-auth-id>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"label": "<string>",
"is_active": true
}
'import requests
url = "https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}"
payload = {
"label": "<string>",
"is_active": True
}
headers = {
"X-Auth-ID": "<x-auth-id>",
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Auth-ID': '<x-auth-id>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({label: '<string>', is_active: true})
};
fetch('https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));PUT https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}
Authentication required
X-Auth-ID— your Vobiz account IDX-Auth-Token— your Vobiz auth token
ID of the pool number, returned by Add pool numbers.
The pool can be edited only while the campaign is
draft or ready. Add, update, and delete return 409 while it is running, paused, or queued.Example
cURL
curl -X PUT \
"https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}" \
-H "X-Auth-ID: {account_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{
"label": "Primary DID",
"is_active": false
}'
total_calls and daily_calls counters remain readable through List pool numbers.Was this page helpful?
⌘I
Update a caller pool number
curl --request PUT \
--url https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id} \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <x-auth-id>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"label": "<string>",
"is_active": true
}
'import requests
url = "https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}"
payload = {
"label": "<string>",
"is_active": True
}
headers = {
"X-Auth-ID": "<x-auth-id>",
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Auth-ID': '<x-auth-id>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({label: '<string>', is_active: true})
};
fetch('https://api.vobiz.ai/api/v1/account/{account_id}/campaigns/{campaign_id}/pool/{number_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));