curl --request PATCH \
--url https://apiv2.vodex.ai/v1/phone-numbers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": true,
"outbound": true
},
"label": "<string>"
}
'import requests
url = "https://apiv2.vodex.ai/v1/phone-numbers/{id}"
payload = {
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": True,
"outbound": True
},
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
direction: {inbound: true, outbound: true},
label: '<string>'
})
};
fetch('https://apiv2.vodex.ai/v1/phone-numbers/{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://apiv2.vodex.ai/v1/phone-numbers/{id}",
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([
'assistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'direction' => [
'inbound' => true,
'outbound' => true
],
'label' => '<string>'
]),
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://apiv2.vodex.ai/v1/phone-numbers/{id}"
payload := strings.NewReader("{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://apiv2.vodex.ai/v1/phone-numbers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/phone-numbers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "num-14155551234",
"e164": "<string>",
"scope": "tenant",
"ownership": "platform",
"carrier": "twilio",
"trunkId": "<string>",
"region": "us",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": true,
"outbound": true
},
"label": "<string>",
"configPublished": true
}{
"error": "not found"
}{
"error": "not found"
}{
"error": "not found"
}Reassign or relabel a number
region is refused with a 400. A number does not carry one — the
tenant’s region picks the cell (0016 §3) — and the gateway trunks live
on one cell, so a field that moved nothing would leave the call
path silently where it was. Moving a tenant is moveTrunkToCell, not
a PATCH here.
curl --request PATCH \
--url https://apiv2.vodex.ai/v1/phone-numbers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": true,
"outbound": true
},
"label": "<string>"
}
'import requests
url = "https://apiv2.vodex.ai/v1/phone-numbers/{id}"
payload = {
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": True,
"outbound": True
},
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
direction: {inbound: true, outbound: true},
label: '<string>'
})
};
fetch('https://apiv2.vodex.ai/v1/phone-numbers/{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://apiv2.vodex.ai/v1/phone-numbers/{id}",
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([
'assistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'direction' => [
'inbound' => true,
'outbound' => true
],
'label' => '<string>'
]),
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://apiv2.vodex.ai/v1/phone-numbers/{id}"
payload := strings.NewReader("{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://apiv2.vodex.ai/v1/phone-numbers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/phone-numbers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"direction\": {\n \"inbound\": true,\n \"outbound\": true\n },\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "num-14155551234",
"e164": "<string>",
"scope": "tenant",
"ownership": "platform",
"carrier": "twilio",
"trunkId": "<string>",
"region": "us",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"direction": {
"inbound": true,
"outbound": true
},
"label": "<string>",
"configPublished": true
}{
"error": "not found"
}{
"error": "not found"
}{
"error": "not found"
}Authorizations
Tenant API key (vdx_live_…) as Authorization: Bearer.
Path Parameters
"num-14155551234"
Body
Response
Updated.
"num-14155551234"
platform marks a Vodex-owned shared caller ID: usable as fromNumberId for outbound calls and batches by every workspace, outbound-only, and read-only — PATCH and DELETE return 403. Distinct from ownership, which says whose carrier trunk the number rides.
tenant, platform platform, byo-trunk twilio, vonage, exotel, vobiz The number's MARKET, derived from its prefix on read. Never stored and never sent — the tenant's region decides which cell serves the number (0016 §3). Absent for a prefix in neither market.
us, in The assistant's uuid, shown on its configure page in the console. Names and slugs are not accepted.
Show child attributes
Show child attributes