This function retrieves all routing applications from a client account.
|
None
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the following fields:
Field | Type | Data |
---|---|---|
filter | String | The applied filter. This is reserved for future use. |
limitStart | Integer | The first record index. Currently 0, reserved for future use. |
limitPageSize | Integer | The number of records. -1 indicates all records. Reserved for future use. |
records | RoutingApplication [] | An array of RoutingApplication records. |
count | Integer | The number of records returned. |
orderBy | String | The field used to sort the records. |
ascending | Boolean | Whether the array of records is sorted ascending or descending. |
status | Integer | The return code (also provided by the http status code). |
|
This function runs a routing application as a daemon (background) process in a client account waiting (for a maximum of 10 seconds) for the result of running the application.
|
Parameter | Where | Type | Data |
---|---|---|---|
routingApplicationsID | URL | Integer | The ID of the routing application to run. |
Data can be passed as content type application/json to the routing application. This will be parsed into variables which will be available in the routing application using the usual $ notation.
The variables will be named with the dotted notation, each additional level in the json structure will result in an additional dot in the variable name.
Example:
{ "myVar1" : "123", "myStruct1": { "field1" : "value1", "field2" : 2 } } |
Will result in the following variables being declared:
$myVar1 = "123" $myStruct1.field1 = "value1" $myStruct1.field2 = "2" |
Note, all variables in the jtel routing engine are treated as strings, though in most cases they can be used as numeric values. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
The routing result object in the IVR is used to return data from the application.
The format and content of the data returned is up to the application programmer, and can be specified freely in the object parameters: