Updates an existing inbound route record. Please see Create an Inbound Routes to review the route values that you can associate with your Flowroute phone numbers.
Endpoint
PATCH /routes/:idPath Parameter
-
id
integer requiredThe record id of the route record to update.
Body Parameters
data
requiredData object composed of the following:
type
requiredThis will always be route.
attributes
requiredObject composed of the following route attributes:
alias
Unique friendly name for the inbound route to be created.
route_type
Indicates the type of route: host, number, uri.
value
If host, the value must be an IP address or URL
with an optional port number. For example, an IP address could be 24.239.23.40:5060 or a URL could be myphone.com. If no port is specified, the server will attempt to use DNS SRV records.If number, the value must be an 11-digit number in E.164 format. e.g.,16476998778.
Ifuri, the value must be formatted as protocol:user@domain[:port][;transport=<tcp/udp>.
For example, sip:alice@atlanta.com, sip:16476998778@215.122.69.152:5060;transport=tcp, or sips:securecall@securedserver.com.
edge_strategy_id
The PoP to receive traffic from. See the section on PoPs for more information.
Value of the route, dependent on the route_type:
Response Fields
On success, the HTTP status code in the response header is 200 OK and the response body contains a route object in JSON format. On error, the header status code is an error code and the response body contains an array of error objects.
-
data
objectRoute object composed of the following:
-
attributes
objectObject composed of attributes described above.
-
id
integerID of the newly created route object.
-
links
objectLinks object pointing to the route's URI. For example, https://api.flowroute.com/v2/routes/98396.
-
type
stringThis will always be route.
-
links
objectLinks object pointing to your newly created route. For example, https://api.flowroute.com/v2/routes/98396.