The url to access the route api is
Code Block | ||
---|---|---|
| ||
https://<PABX HOST>/servicemanager/rest/RouteAPI/updateRoute |
...
Arguments are:
enabled (true/false)
title
description
brand
did
timeStamp
hash
timeStamp and hash relate to auth as in our other API's
apiKey
enabled takes true/false
title, description and brand take any text (URL encoded of course)
A route will be matched on the 'did', if there is exactly 1 route for the 'did' the update will take place and you will receive 'OK'.
if there are 0 or more than 1 routes no update will occur and you will recieve a message like
Can not perform the requested operation, there are 0 routes for DID 410
a valid call to the route API looks like this....
Code Block | ||
---|---|---|
| ||
https://127.0.0.1/servicemanager/rest/RouteAPI/updateRoute?enabled=false&title=abc123&timeStamp=1408681362359&hash=3fcb8860067564f9c48e72190a159ec872f86a44d272db9ff5363d992d48ad29 apiKey=f863246a-973e-11e6-8784-08002718f5b5&description=abc123&brand=abc123&did=410 |