api:pbx:app:mobileconfig:create
Table of Contents
API : PBX : APP : Mobile Config Create
Introduction
This request will create a new mobile config.
Mobile config are user-specific, used in the Communicator mobile apps.
Request
| URL | https://api.telecomx.dk/pbx/app/mobileconfig/EMPLOYEE_ID | ||
|---|---|---|---|
| Method | POST | ||
| Access level | PERSONAL if dashboard belongs to the user VIEWER, MANAGER, OWNER if dashboard belongs to an employee RESELLER if dashboard belongs to a customers employee ADMIN. |
||
| Params | EMPLOYEE_ID | ID | Id of the mobile config to create, same as the employee it belongs to. |
Query examples
https://api.telecomx.dk/pbx/app/mobileconfig/12345678901234567890ABCD
Response
Returns JSON objects.
| JSON object | ||
|---|---|---|
| _id | Id | Id of mobile config. |
| customer | id | Id of the customer. |
| configs | Array | List of configs |
| configs[].type | String | Type of config |
| configs[].items | Array | List of items |
| configs[].items[]._id | Id | Object id of item |
| configs[].items[].name | String | Name of item |
| configs[].others | Array | List of items |
| configs[].others[]._id | Id | Object id of item |
| configs[].others[].name | String | name of object |
Example
{ "_id": ObjectId("12345678901234567890ABCD"), "customer": ObjectId("12345678901234567890AAAA"), "configs": [ { "type": "COLLEAGUES", "items": [ { _id: "12345678901234567890EEEE", "name": "Joakim" } ], "others": [ { "_id": "12345678901234567890FFFF", "name": "Per" } ] }, { "type": "QUEUES", "items": [ { "_id": "12345678901234567890EEEE", "name": "Support" } ], "others": [ { "_id": "12345678901234567890FFFF", "name": "Vagt" } ] }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | group | Group not found |
| 404 | items[x]._id | Queue not found |
| 404 | items[x].extensions | One or more employees or extensions were not found |
| 409 | items[x].variables | Your access level does not permit GLOBAL ownership |
| 500 | internal_error | <Unspecified> |
api/pbx/app/mobileconfig/create.txt · Last modified: 2024/11/08 14:11 by Gudni Sigurdsson