Update a number

Updates a phone number's routing and settings; fields you omit keep their current values. Routing changes regenerate and reload the number's routing, and sending destination_actions at all — even with values identical to the current ones — claims manual routing ownership and detaches the number from the call flow it belonged to. domain_uuid, provider_uuid, provider_verified, destination_enabled and domain_name are ignored without an error. If a step after the write fails, a rollback is attempted and the response says whether it succeeded. Every change is recorded in the number's history. Changing the number, its prefix or its match pattern is an identity change: if the result would point at a phone number another account already routes, the request is refused with 403 and nothing is saved. Submitting those fields with the values they already hold is not an identity change and saves normally.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID of the phone number to update. The format is not checked before the lookup.

Body Params
destination_actions
array of objects

Routing actions for the number. The first entry supplies the flat app and data, and the array is stored when both are present. Sending a non-null array detaches the number from any call flow.

destination_actions
string

Fax metadata, stored as sent.

number

Whether the number carries text messaging.

number

Whether the number is usable for emergency calling.

number

Sort order for the number.

string

Type of the destination.

string

The phone number itself.

string

Prefix stored with the number.

string

Match expression used to recognize the number on an inbound call.

string

Caller ID name sent with calls on this number. Trimmed.

string

Caller ID number sent with calls on this number.

string

Prefix added to the caller ID name. Trimmed.

string

Routing context the number belongs to.

string

Routing application for the number. Overrides the value derived from destination_actions.

string

Argument for the routing application. Overrides the value derived from destination_actions.

string

Free-text description of the number. Trimmed.

boolean

Whether calls on this number are recorded. Stored as the string true or false.

string

Alternate routing application.

string

Argument for the alternate routing application.

string

Hold music used for calls on this number.

string

The number's own ID. It can be changed here, so send it only when you mean to.

string

ID of the routing entry associated with this number.

string

Fax account this number delivers to. Send an empty string to clear it.

string

User this number is assigned to. Send an empty string to clear it.

Responses

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json