User Services

Display user’s services

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

Retrieve the settings of the assigned user service.

Example request:

GET /api/v1/tenants/foo/groups/foogroup/users/foouser/services/ HTTP/1.1
Host: example.com
Content-Type: "application/json"

{
   "assignementStatus": true,
   "summary": true
}
Response JSON Object:
  • assignementStatus (boolean) – retrieve assignment status.

  • summary (boolean) – retrieve summary.

Example response:

HTTP/1.1 200 OK

{
   "summary": {
      "userServices": [
         {"active": false, "name": "Call Forwarding Not Reachable"}
      ],
      "groupService": []
   },
   "assignementStatus": {
      "services": [
         {"assigned": false, "name": "Call Forwarding Busy"},
         {"assigned": false, "name": "Busy Lamp Field"},
         {"assigned": true, "name": "Call Forwarding Not Reachable"},
         {"assigned": false, "name": "Call Forwarding Always"},
         {"assigned": false, "name": "Do Not Disturb"}
      ],
      "servicePacks": [
         {"assigned": false, "name": "Basic_CLI"}
      ]
   }
}
Response JSON Object:
Status Codes:

Add a user’s services

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

Add the settings of the assigned user service.

Example request:

POST /api/v1/tenants/foo/groups/foogroup/users/foouser/services/ HTTP/1.1
Host: example.com
Content-Type: "application/json"

{
   "services": [
      {
         "name": "Call Forwarding Busy"
      }
   ]
}
Request JSON Object:

Example response:

Response:

Similar to GET list method response.

Status Codes:

Delete user services

DELETE /api/v1/tenants/(string: tenant_id)/groups/(string: group_id)/users/(string: user_id)/services/

Remove the settings of the assigned user service.

Example request:

DELETE /api/v1/tenants/foo/groups/foogroup/users/foouser/services/ HTTP/1.1
Host: example.com
Content-Type: "application/json"

{
   "services": [
      {
         "name": "Call Forwarding Busy"
      }
   ]
}
Request JSON Object:

Example response:

HTTP/1.1 200 OK

{}
Status Codes: