Update the resource for a phone number
Renames a phone number address, re-points its channel to a different resource, or both; omitted fields keep their current values. The channel itself is fixed: handler_type can't be changed, so to hand a number's other channel to a resource, update that channel's own address. Renaming the address also renames the phone number.
A 422 response names the problem in its code:
- invalid_parameter: name is not URL-safe or is longer than 256 characters.
- provided_id_is_unrecognized: resource_id is not a resource in your project.
- invalid_resource_type: the resource can't handle this address's channel.
<Warning title="Beta">This API is in beta and may change.</Warning>
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Calling, Fax, Messaging, or Video.
Learn more about API scopes.
Path parameters
Universal Unique Identifier.
Unique ID of a phone number address.
Request body
Example request
{
"name": "renamed-support-number"
}Response
The request has succeeded.
Example response
{
"type": "phone",
"name": "main-support-number",
"phone_number": "+13105550100",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z"
}Changes
Changed in 4 of the 161 revisions of this API.123
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
changed the pattern of the request property
from^[a-z0-9]+(-[a-z0-9]+)*$to^[a-z0-9_]+(-[a-z0-9_]+)*$request-property-pattern-changed
- ●
added the new
phoneenum value to theresponse property for the response statusresponse-property-enum-value-added
- ○
removed the
phone_number_addressenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ●
- ○
endpoint added
endpoint-added
- ○
Of the 161 revisions, 3 have a changelog that could not be searched.