call-routing. Requires Office Manager, Route Manager, or Call Center Supervisor scope in the domain, Reseller scope in its territory, or Super User scope. A failed create leaves nothing behind, so it is always safe to retry.Authorization: Bearer ********************synchronous=yes, sent in the body or the query string, when the profile is applied within 2 seconds: the route profile. If it takes longer, you get 202 and the write still completes.curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//routeprofiles' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"connection-orig-match-pattern": "tollfree",
"description": "Toll-free outbound chain",
"call-routing": {
"route-method": "percentage",
"routecon": [
{
"route-connection-ordinal-index": 1,
"route-connection-translation-destination-host": "carrier1.example.com",
"route-connection-integer-percentage": 60
},
{
"route-connection-ordinal-index": 2,
"route-connection-translation-destination-host": "carrier2.example.com",
"route-connection-integer-percentage": 40
}
]
}
}'{
"connection-id": "dG9sbGZyZWU",
"connection-orig-match-pattern": "tollfree",
"connection-term-match-pattern": "tollfree",
"domain": "example.com",
"description": "Toll-free outbound chain",
"connection-usage-role": "customer",
"connection-connectivity-type": "route_profile",
"call-routing": {
"route-destination-match-pattern": "EXAMPLE.COM_tollfree",
"route-source-match-pattern": "*",
"route-class": "*",
"route-match-server-hostname": "*",
"route-is-enabled": "yes",
"description": "Toll-free outbound chain",
"route-method": "percentage",
"routecon": [
{
"route-connection-ordinal-index": 1,
"route-connection-translation-destination-user": "[*]",
"route-connection-translation-destination-host": "carrier1.example.com",
"route-connection-integer-percentage": 60,
"route-connection-integer-cost": 0
},
{
"route-connection-ordinal-index": 2,
"route-connection-translation-destination-user": "[*]",
"route-connection-translation-destination-host": "carrier2.example.com",
"route-connection-integer-percentage": 40,
"route-connection-integer-cost": 0
}
]
}
}