Update Phone Number
curl --request PUT \
--url https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id} \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"inbound_workflow_id": 123,
"clear_inbound_workflow": false,
"is_active": true,
"country_code": "<string>",
"extra_metadata": {}
}
'import requests
url = "https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}"
payload = {
"label": "<string>",
"inbound_workflow_id": 123,
"clear_inbound_workflow": False,
"is_active": True,
"country_code": "<string>",
"extra_metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
inbound_workflow_id: 123,
clear_inbound_workflow: false,
is_active: true,
country_code: '<string>',
extra_metadata: {}
})
};
fetch('https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_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([
'label' => '<string>',
'inbound_workflow_id' => 123,
'clear_inbound_workflow' => false,
'is_active' => true,
'country_code' => '<string>',
'extra_metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"telephony_configuration_id": 123,
"address": "<string>",
"address_normalized": "<string>",
"address_type": "<string>",
"is_active": true,
"is_default_caller_id": true,
"extra_metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"country_code": "<string>",
"label": "<string>",
"inbound_workflow_id": 123,
"inbound_workflow_name": "<string>",
"provider_sync": {
"ok": true,
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Phone Numbers
Update Phone Number
Update label, inbound binding, or activation state of a phone number
PUT
/
api
/
v1
/
organizations
/
telephony-configs
/
{config_id}
/
phone-numbers
/
{phone_number_id}
Update Phone Number
curl --request PUT \
--url https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id} \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"inbound_workflow_id": 123,
"clear_inbound_workflow": false,
"is_active": true,
"country_code": "<string>",
"extra_metadata": {}
}
'import requests
url = "https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}"
payload = {
"label": "<string>",
"inbound_workflow_id": 123,
"clear_inbound_workflow": False,
"is_active": True,
"country_code": "<string>",
"extra_metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
inbound_workflow_id: 123,
clear_inbound_workflow: false,
is_active: true,
country_code: '<string>',
extra_metadata: {}
})
};
fetch('https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_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([
'label' => '<string>',
'inbound_workflow_id' => 123,
'clear_inbound_workflow' => false,
'is_active' => true,
'country_code' => '<string>',
'extra_metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.asisso.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"inbound_workflow_id\": 123,\n \"clear_inbound_workflow\": false,\n \"is_active\": true,\n \"country_code\": \"<string>\",\n \"extra_metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"telephony_configuration_id": 123,
"address": "<string>",
"address_normalized": "<string>",
"address_type": "<string>",
"is_active": true,
"is_default_caller_id": true,
"extra_metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"country_code": "<string>",
"label": "<string>",
"inbound_workflow_id": 123,
"inbound_workflow_name": "<string>",
"provider_sync": {
"ok": true,
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Changing
inbound_workflow_id re-syncs the inbound webhook with the provider; the response includes a provider_sync block with the result.
To remove an existing inbound binding, send clear_inbound_workflow: true. Sending inbound_workflow_id: null alone is treated as “no change”.Body
application/json
Partial update. address is intentionally immutable — to change a
number, delete the row and create a new one.
Response
Successful Response
Result of pushing a phone-number change to the upstream provider.
Returned alongside create/update responses when the route attempted to
sync inbound webhook configuration. ok=False is a warning, not a
fatal error — the DB write succeeded.
Show child attributes
Show child attributes
⌘I