Use this endpoint to specify the primary voice route 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/voice_primary_routeRequest Parameters
-
number_id
string REQUIREDThe phone number to which the primary route for voice will be assigned. This number must be in 11-digit North American format. e.g. 12065551234.
-
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 primary voice route to be assigned to the phone number that you are updating.