Call center¶
Tenant call disposition codes¶
Disposition codes are additional attributes that can be applied to inbound and outbound calls to tag calls with comments, results, and so on.
More than one disposition code can be assigned to a call.
Disposition codes can be defined at the Enterprise level and they are available to all route points and Premium call centers in the Tenant.
Get the list of a group call disposition codes¶
-
GET
/api/v1/tenants/
(string: tenant_id)/services/call_centers_properties/disposition_codes/
¶ List all the call disposition codes of a Tenant.
Authorization rights: minimum End User.
Example request:
GET /api/v1/tenants/footenant/services/call_centers_properties/disposition_codes/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" { "disposition_codes": [ { "code": "123456", "active": true, "description": "Test Call Disposition Code" } ] }
- Response JSON Object:
disposition_codes (array) – a list of call center disposition codes objects as defined as Call center disposition code attributes.
- Status Codes:
200 OK – no error
Bad request due to invalid parameters, with possible sub-error codes:
42: NOT_AVAILABLE_IN_SP_MODE, “Tenant cannot be a Service Provider.”
Create a new Tenant call disposition code¶
-
POST
/api/v1/tenants/
(string: tenant_id)/services/call_centers_properties/disposition_codes/
¶ Create a new Tenant call disposition code.
Authorization rights: minimum Tenant Admin.
Example request:
POST /api/v1/tenants/footenant/services/call_centers_properties/disposition_codes/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "code": "123456", "active": true, "description": "Test Call Disposition Code" }
- Request JSON Object:
code (string) – The name of the code. See Call center disposition code attributes.
active (boolean) – Specify if the code is active or not. See Call center disposition code attributes.
description (string) – The description of the code. See Call center disposition code attributes.
Example response:
HTTP/1.1 201 CREATED Content-Type: "application/json" {}
- Status Codes:
201 Created – no error.
Bad request due to invalid parameters, with possible sub-error codes:
11: ALREADY_EXISTS, “Disposition code name already exists.”
42: NOT_AVAILABLE_IN_SP_MODE, “Tenant cannot be a Service Provider.”
Get a Tenant call disposition code instance¶
-
GET
/api/v1/tenants/
(string: tenant_id)/services/call_centers_properties/disposition_codes/
(string: instance_name)/
¶ Get a Tenant call center call disposition code instance.
Authorization rights: minimum End User.
Example request:
GET /api/v1/tenants/footenant/services/call_centers_properties/disposition_codes/fooCode/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" { "active": true, "description": "Test Call Disposition Code" }
- Response JSON Object:
active (boolean) – Specify if the code is active or not. See Call center disposition code attributes.
description (string) – The description of the code. See Call center disposition code attributes.
- Status Codes:
200 OK – no error
Bad request due to invalid parameters, with possible sub-error codes:
42: NOT_AVAILABLE_IN_SP_MODE, “Tenant cannot be a Service Provider.”
404 Not Found – code not found
Modify a Tenant call disposition code¶
-
PUT
/api/v1/tenants/
(string: tenant_id)/services/call_centers_properties/disposition_codes/
(string: instance_name)/
¶ Modify a Tenant call disposition code.
Authorization rights: minimum Tenant Admin.
Example request:
PUT /api/v1/tenants/footenant/services/call_centers_properties/disposition_codes/fooCode/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "active": true, "description": "Test Call Disposition Code" }
- Request JSON Object:
active (boolean) – Specify if the code is active or not. See Call center disposition code attributes.
description (string) – The description of the code. See Call center disposition code attributes.
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" {}
- Status Codes:
200 OK – no error
Bad request due to invalid parameters, with possible sub-error codes:
42: NOT_AVAILABLE_IN_SP_MODE, “Tenant cannot be a Service Provider.”
404 Not Found – code not found
Remove a Tenant call disposition code¶
-
DELETE
/api/v1/tenants/
(string: tenant_id)/services/call_centers_properties/disposition_codes/
(string: instance_name)/
¶ Remove a Tenant call disposition code.
Authorization rights: minimum Tenant Admin.
Example request:
DELETE /api/v1/tenants/footenant/services/call_centers_properties/disposition_codes/fooCode/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" {}
- Status Codes:
200 OK – no error. Note that trying to delete an unexistent code, it’ll not return an error.
Bad request due to invalid parameters, with possible sub-error codes:
42: NOT_AVAILABLE_IN_SP_MODE, “Tenant cannot be a Service Provider.”