Call Capacity Management

Create instance

POST /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/

Create a new instance for the call capacity service.

Authorization Right:minimum Group Admin.

Example request:

POST /api/v1/tenants/foo/groups/foogroup/services/call_capacities/ HTTP/1.1
Host: example.com

{
   "name": "test_call_capa",
   "isDefault": true,
   "maxCalls": 7,
   "maxOutgoingCalls": 5,
   "userIds" : [
      "user_1@sip.netaxis.be",
      "user_9@sip.netaxis.be"
   ]
}
Request JSON Object:

Example response:

Response:

Similar to GET instance method response.

Status Codes:

Retrieve list instances

GET /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/

Retrieve the list of instances of the call capacity service.

Authorization Right:minimum Group Admin.

Example request:

GET /api/v1/tenants/foo/groups/foogroup/services/call_capacities/ HTTP/1.1
Host: example.com

Example response:

HTTP/1.1 200 OK

{
   "call_capacities" : [
      {
         "name": "test_call_capa",
         "isDefault": true,
         "maxCalls": 7,
         "maxOutgoingCalls": 5
      }
   ]
}
Response JSON Object:
Status Codes:

Retrieve instance

GET /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/(string: call_capacity_name)/

Retrieve an instance of the call capacity service.

Authorization Right:minimum Group Admin.

Example request:

GET /api/v1/tenants/foo/groups/foogroup/services/call_capacities/test_call_capa/ HTTP/1.1
Host: example.com

Example response:

HTTP/1.1 200 OK

{
   "isDefault": true,
   "maxCalls": 7,
   "maxOutgoingCalls": 5
   "users": [
      {
         "extension": "5001",
         "firstName": "Test1",
         "lastName": "Test1",
         "userId": "ApioUserTest1@sip.netaxis.be",
         "emailAddress": "",
         "department": "",
         "phoneNumber": "+3225126777"
      }
   ]
}
Response JSON Object:
Status Codes:

Modify instance

PUT /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/(string: call_capacity_name)/

Update an instance of the call capacity service.

Authorization Right:minimum Group Admin.

Example request:

PUT /api/v1/tenants/foo/groups/foogroup/services/call_capacities/test_call_capa/ HTTP/1.1
Host: example.com

{
   "isDefault": true,
   "maxCalls": 5,
   "maxIncomingCalls": null,
   "maxOutgoingCalls": 3,
   "userIds" : [
      "user_1"
   ]
}
Request JSON Object:

Example response:

Response:

Similar to GET instance method response.

Status Codes:

Delete instance

DELETE /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/(string: call_capacity_name)/

Delete an instance of the call capacity service.

Authorization Right:minimum Group Admin.

Example request:

DELETE /api/v1/tenants/foo/groups/foogroup/services/call_capacities/test_call_capa/ HTTP/1.1
Host: example.com

Example response:

HTTP/1.1 200 OK
Status Codes:

Retrieve available users

GET /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/services/call_capacities/available_users/

Retrieve the list of users who could be assigned to a Call Capacity instance.

Authorization Right:minimum Group Admin.

Example request:

GET /api/v1/tenants/foo/groups/foogroup/services/call_capacities/available_users/ HTTP/1.1
Host: example.com

Example response:

HTTP/1.1 200 OK

{
   "users": [
      {"userId": "user1", "firstName": "tom", "lastName": "smith", "extension": "1234", "emailAddress": "", "phoneNumber": "+3225126777"},
      {"userId": "user2", "firstName": "john", "lastName": "doe", "extension": "4321", "emailAddress": "", "department": {"tenantId": "ApioSpTest", "groupId": "ApioGrpTest", "departmentName": "test_department_initial", "fullPathName": "test_department_parent_1 \\ test_department_initial"}, "phoneNumber": "+3225125757"}
   ]
}
Response JSON Object:
  • users (array) – a list of user objects as defined below

Status Codes:

Users for Call Capacity attributes

Name

Type

Methods

Description

GET

userId

String

A

The unique user Id.

firstName

String

A

The user first name. (See First / Last name).

lastName

String

A

The user last name. (See First / Last name).

department

Object

C

The department the user belongs to. (See Group department key attributes).

extension

String

A

The user extension. (See Extension).

phoneNumber

String

A

The user phone number (See Phone Number).

emailAddress

String

A

The user email address.