Update agent bound to a purchased phone number
Path parameters
E.164 format of the number (+country code, then number with no space, no special characters), used as the unique identifier for phone number APIs.
Request body
Example request
{
"inbound_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"outbound_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"inbound_sms_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"outbound_sms_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"nickname": "Frontdesk Number",
"inbound_webhook_url": "https://example.com/inbound-webhook",
"inbound_sms_webhook_url": "https://example.com/inbound-sms-webhook",
"allowed_inbound_country_list": [
"US",
"CA",
"GB"
],
"allowed_outbound_country_list": [
"US",
"CA"
],
"termination_uri": "someuri.pstn.twilio.com",
"auth_username": "username",
"auth_password": "123456",
"transport": "TCP",
"fallback_number": "+14155551234"
}Response
Successfully updated an phone number object.
Example response
{
"phone_number": "+14157774444",
"phone_number_type": "retell-twilio",
"phone_number_pretty": "+1 (415) 777-4444",
"allowed_inbound_country_list": [
"US",
"CA",
"GB"
],
"allowed_outbound_country_list": [
"US",
"CA"
],
"area_code": 415,
"inbound_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"outbound_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"inbound_sms_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"outbound_sms_agents": [
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"agent_version": 1,
"weight": 0.5
}
],
"nickname": "Frontdesk Number",
"inbound_webhook_url": "https://example.com/inbound-webhook",
"inbound_sms_webhook_url": "https://example.com/inbound-sms-webhook",
"last_modification_timestamp": 1703413636133,
"sip_outbound_trunk_config": {
"termination_uri": "someuri.pstn.twilio.com",
"auth_username": "username",
"transport": "TCP"
},
"fallback_number": "+14155551234"
}Changes
Changed in 8 of the 28 revisions of this API.112035
- ●
changed the pattern of the request property
///from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ○
the
///response's property pattern was changed from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$to^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ●
- ●
changed the pattern of the request property
///from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ●
changed the pattern of the request property
///from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$request-property-pattern-changed
- ○
the
///response's property pattern was changed from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ○
the
///response's property pattern was changed from^[a-z0-9_-]+$to^(latest|(?!(?:v\d+)$)[a-z][a-z0-9_-]{0,19})$for the statusresponse-property-pattern-changed
- ●
- ▲
response property
inbound_agents/items/agent_versionlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
inbound_sms_agents/items/agent_versionlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
outbound_agents/items/agent_versionlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
outbound_sms_agents/items/agent_versionlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
request property
//list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
//list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
//list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
//list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ▲
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
- ▲
for the
pathrequest parameterphone_number, the minLength was increased from0to1request-parameter-min-length-increased
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
//request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
//request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
//request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
//request property's minLength was increased from0to1request-property-min-length-increased
- ▲
- ○
request property
deprecatedrequest-property-deprecated
- ○
request property
deprecatedrequest-property-deprecated
- ○
request property
deprecatedrequest-property-deprecated
- ○
response property
inbound_agent_iddeprecatedresponse-property-deprecated
- ○
response property
inbound_agent_versiondeprecatedresponse-property-deprecated
- ○
response property
outbound_agent_iddeprecatedresponse-property-deprecated
- ○
response property
outbound_agent_versiondeprecatedresponse-property-deprecated
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ●