User Tools

Site Tools


api:pbx:app:mobileconfig:get

API : PBX : APP : Mobile config Get

Introduction

This request will retrive a specific mobile configuration.

Mobile configs are user specific, used in communicator mobile apps.

Request

URL https://api.telecomx.dk/pbx/app/mobileconfig/MOBILECONFIG_ID
Method GET
Access level PERSONAL if dashboard belongs to the user
VIEWER, MANAGER, OWNER if dashboard belongs to an employee of the customer
RESELLER if dashboard belongs to a customers employee
ADMIN.
Params MOBILECONFIG_ID ID Id of the mobile config to return.

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
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/get.txt · Last modified: 2024/11/08 13:52 by Gudni Sigurdsson

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki