api:pbx:app:mobileconfig:copy
Table of Contents
API : PBX : APP : Mobile config Copy
Introduction
This request will update an existing mobiel config using another configuration.
Mobiel config are user-specific, used in the Communicator mobile apps.
Request
| URL | https://api.telecomx.dk/pbx/app/mobileconfig/ | ||
|---|---|---|---|
| Method | POST | ||
| Access level | PERSONAL if mobile config belongs to the user VIEWER, MANAGER, OWNER if mobile config belongs to an employee RESELLER if mobile config belongs to a customers employee ADMIN. |
||
| Body | _id | Id | Id of the mobile config and employee copy from. |
| copyTo | Id | Id of the employee you want to update | |
Query examples
{ "_id": "12345678901234567890CCCC", "copyTo": "12345678901234567890CCCC" }
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 |
|---|---|---|
| 400 | bad_request | Request not valid |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Object not found |
| 500 | internal_error | <Unspecified> |
api/pbx/app/mobileconfig/copy.txt · Last modified: 2024/11/08 14:24 by Gudni Sigurdsson