This request returns the list of beacon a customer has, and optionally shared beacons.
| URL | https://api.telecomx.dk/pbx/beacon/ID | |
|---|---|---|
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER, OWNER if beacon belongs to the users customer RESELLER if customer belongs to the reseller, RESELLER_ADMIN and ADMIN. |
|
| Params | ID | Id of beacon. |
https://api.telecomx.dk/pbx/beacon/12345678901234567890ABCD
| JSON object | ||
|---|---|---|
| _id | Id | Unique id of the beacon. |
| uuid | String | UUID of the beacon. |
| major | Number | Major value: 0-65535. |
| minor | Number | Minor value: 0-65535. |
| customer | Id | The customer the beacon belongs to. |
| shared | Boolean | True to let other customers also use the beacon. |
| location | String | Name of the location where the beacon is installed. |
| note | String | Optional note about the beacon and where it is located. |
| battery | Number | Battery level in percent. |
| lastSeen | Date | Date when beacon was last seen, if available. |
{ "_id": "12345678901234567890ABDE", "uuid": "12345678-1234-1234-1234-123456789012", "major": 1, "minor": 23 "customer": "1234567890123457890AADD", "shared": false, "location": "Main office", "note": "Reception desk", "lastSeen": "2020-01-01T00:00:00.000Z" }
| Error code | Message | Description |
|---|---|---|
| 404 | id | Beacon not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |