Route Point Instances¶
Create instance¶
-
POST
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/
¶ Create a new route point in a group.
Example request:
POST /api/v1/tenants/foo/groups/foogroup/services/route_points/ HTTP/1.1 Host: example.com { "serviceUserId": "APIOTestRP@sip.netaxis.be", "serviceInstanceProfile": { "name": "Test User", "password": "test_password", "department": { "tenantId": "ApioSpTest", "groupId": "ApioGrpTest", "departmentName": "test_department_initial" }, "cliFirstName": "First Name", "cliLastName": "Last Name", "language": "English", "timeZone": "Europe/Brussels" }, "templateName": "basic" }
- Request JSON Object:
serviceUserId (string) – (Optional) See serviceUserId from Route Point Instance.
serviceInstanceProfile (object) – (Required) See serviceInstanceProfile from Route Point Instance.
networkClassOfService (string) – See networkClassOfService from Route Point Instance.
externalPreferredAudioCodec (string) – See externalPreferredAudioCodec from Route Point Instance.
internalPreferredAudioCodec (string) – See internalPreferredAudioCodec from Route Point Instance.
queueLength (integer) – See queueLength from Route Point Instance.
noAnswerTimeoutRings (integer) – See noAnswerTimeoutRings from Route Point Instance.
playRingingWhenOfferingCall (boolean) – See playRingingWhenOfferingCall from Route Point Instance.
overrideAgentWrapUpTime (boolean) – See overrideAgentWrapUpTime from Route Point Instance.
wrapUpSeconds (integer) – See wrapUpSeconds from Route Point Instance.
enableAutomaticStateChangeForAgents (boolean) – See enableAutomaticStateChangeForAgents from Route Point Instance.
agentStateAfterCall (string) – See agentStateAfterCall from Route Point Instance.
agentUnavailableCode (string) – See agentUnavailableCode from Route Point Instance.
forceDeliveryOfCalls (boolean) – See forceDeliveryOfCalls from Route Point Instance.
forceDeliveryWaitTimeSecondsSeconds (integer) – See forceDeliveryWaitTimeSecondsSeconds from Route Point Instance.
templateName (string) – As defined as Template Name. The template category used is route_point.
Example response:
- Response:
Similar to GET instance method response.
- Status Codes:
201 Created – instance created
Retrieve instance¶
-
GET
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/
(string: route_point_name)/
¶ Retrieve a route point.
Example request:
GET /api/v1/tenants/foo/groups/foogroup/services/route_points/APIOTestRP@sip.netaxis.be/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK { "routePointInstance": { "serviceUserId": "APIOTestRP@sip.netaxis.be", "serviceInstanceProfile": { "name": "Test User Basic", "cliFirstName": "First Name", "cliLastName": "Last Name", "language": "English", "timeZone": "Europe/Brussels", "phoneNumber": "", "department": { "tenantId": "ApioSpTest", "groupId": "ApioGrpTest", "departmentName": "test_department_initial" }, "extension": "", "cliPhoneNumber": null, "publicUserIdentity": "" }, "queueLength": 0, "allowCallsToAgentsInWrapUp": false, "wrapUpSeconds": 0, "forceDeliveryOfCalls": false, "forceDeliveryWaitTimeSeconds": 1, "enableAutomaticStateChangeForAgents": false, "agentStateAfterCall": "Available", "agentUnavailableCode": "", "externalPreferredAudioCodec": "None", "internalPreferredAudioCodec": "None", "playRingingWhenOfferingCall": true, "networkClassOfService": "", "noAnswerTimeoutRings": 3 } }
- Response JSON Object:
routePointInstance (object) – Route Point Instance informations. See Route Point Instance.
- Status Codes:
200 OK –
Retrieve list instances¶
-
GET
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/
¶ Retrieve the list of route points.
Example request:
GET /api/v1/tenants/foo/groups/foogroup/services/route_points/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK { "route_points": [ { "serviceUserId": "APIOTestRP@sip.netaxis.be", "name": "Test User Basic", "phoneNumber": "", "extension": "", "department": { "tenantId": "ApioSpTest", "groupId": "ApioGrpTest", "departmentName": "test_department_initial", "fullPathName": "test_department_parent_1 \\ test_department_initial" } } ] }
- Response JSON Object:
call_centers (array) – The list of route_points. See Route Point List Item.
- Status Codes:
200 OK –
Update instance¶
-
PUT
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/
(string: route_point_name)/
¶ Update a route point.
Example request:
PUT /api/v1/tenants/foo/groups/foogroup/services/route_points/APIOTestCCBasic@sip.netaxis.be/ HTTP/1.1 Host: example.com { "serviceInstanceProfile": { "language": "French" }, "queueLength": 10 }
- Request JSON Object:
serviceInstanceProfile (object) – See serviceInstanceProfile from Route Point Instance.
networkClassOfService (string) – See networkClassOfService from Route Point Instance.
externalPreferredAudioCodec (string) – See externalPreferredAudioCodec from Route Point Instance.
internalPreferredAudioCodec (string) – See internalPreferredAudioCodec from Route Point Instance.
queueLength (integer) – See queueLength from Route Point Instance.
noAnswerTimeoutRings (integer) – See noAnswerTimeoutRings from Route Point Instance.
playRingingWhenOfferingCall (boolean) – See playRingingWhenOfferingCall from Route Point Instance.
overrideAgentWrapUpTime (boolean) – See overrideAgentWrapUpTime from Route Point Instance.
wrapUpSeconds (integer) – See wrapUpSeconds from Route Point Instance.
enableAutomaticStateChangeForAgents (boolean) – See enableAutomaticStateChangeForAgents from Route Point Instance.
agentStateAfterCall (string) – See agentStateAfterCall from Route Point Instance.
agentUnavailableCode (string) – See agentUnavailableCode from Route Point Instance.
forceDeliveryOfCalls (boolean) – See forceDeliveryOfCalls from Route Point Instance.
forceDeliveryWaitTimeSecondsSeconds (integer) – See forceDeliveryWaitTimeSecondsSeconds from Route Point Instance.
Example response:
- Response:
Similar to GET instance method response.
- Status Codes:
200 OK – instance updated
Delete instance¶
-
DELETE
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/
(string: route_point_name)/
¶ Delete a route point.
Example request:
DELETE /api/v1/tenants/foo/groups/foogroup/services/route_points/APIOTestRP@sip.netaxis.be/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK
- Status Codes:
200 OK – instance delete
Update Route Points’s active status¶
-
PUT
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/route_points/active_instance/
¶ Update the active status of Route Point instances.
Example request:
PUT /api/v1/tenants/foo/groups/foogroup/services/route_points/active_instance/ HTTP/1.1 Host: example.com { "services": [ { "serviceUserId": "APIOTestRP@sip.netaxis.be", "active": true } ] }
- Request JSON Object:
services (array) – List of services to modify. See Active Instance List Item.
Example response:
HTTP/1.1 200 OK {}
- Status Codes:
200 OK – instance updated
Configuration Information for RP Management¶
In the POST API, when creating a route point, it is possible to configure APIO to generate automatically the service user ID according to a specific rule.
The APIO behaviour for the route point automatic service user ID generation is controlled by the following setting:
"AUTOMATIC_ID_RULES": {
"SUID_ROUTE_POINT_AUTO_GENERATE": true,
"SUID_ROUTE_POINT_RULE": "{{group_id}}_rp{{RND_4}}@{{domain}}"
}
- Settings description:
SUID_ROUTE_POINT_AUTO_GENERATE: APIO will enable the auto-generation of route point service ids. Default is false, it must be set to true to have this feature working.
SUID_ROUTE_POINT_RULE: the formatting rule for the route point service user id. Default is “{{group_id}}_rp{{RND_4}}@{{domain}}”.
If the service user id number is built using the phone number in the generation rule, it is possible to configure APIO to change the service user io according to phone number modification on PUT request.
The APIO behaviour for the route point automatic service user id modification is controlled by the following setting:
"AUTOMATIC_ID_RULES": {
"SERVICE_USERS_UPDATE_ID_PHONE_NUMBER": true
}
- Settings description:
SERVICE_USERS_UPDATE_ID_PHONE_NUMBER: APIO will enable the auto-update of the service ids of all type of service users. Default is False, it must be set to have this feature working with phone numbers based service user ids and containing any of “{{phone_number_e164}}”, “{{country_code}}” or “{{national_no_0}}” placeholders in id generation rule.
The formatting of the phone Number in the List answer is controlled by the following settings:
"GROUP_NUMBERS_USE_CC_CLI": false
- With following parameters:
GROUP_NUMBERS_USE_CC_CLI, the OCI documentation says explicitly the numbers will be returned in E164. But it has been reported that sometimes it is not the case, and we have no info from Cisco about this. This parameter is used in some APIs (in this page the answer of the GET Hunt Groups List) to implement a workaround that will assume that the number is in national format if same country code as Grouo CLi. It is based on observations and not on Cisco doc. Therefore toi be used carefully
Configuration Information for the Passwords¶
The Route Pointss are Service Users therefore for their passwords (checking if valid or generating one) therefore it is the same rules and configuration settings that apply.