Specifies the failover voice route record for a phone number. You must create the route first by following Create an Inbound Route. You can then assign the created route by specifying its value in a PATCH request.
Endpoint
PATCH /numbers/:id/relationships/failover_routePath Parameter
-
number_id
string REQUIREDThe phone number to which the failover route for voice will be assigned. This number must be in 11-digit North American format. e.g. 12065551234.
Body Parameters
-
type
string REQUIREDObject type of the data that you are updating the phone number with. This will always be "route".
-
route_id
string REQUIREDID of the failover voice route to be assigned to the phone number that you are updating.
Response
On success, the HTTP status code in the response header is 204 NO CONTENT which means that the server successfully processed the request and is not returning any content. On error, the header status code is an error code and the response body contains an array of error objects.