api:pbx:beacon:battery
Table of Contents
API : PBX : Beacon : Battery
Request
This request is used by client to periodically report the battery level of the beacons they detect.
| URL | https://api.telecomx.dk/pbx/beacon/ID/battery | ||
|---|---|---|---|
| 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 | string | Id of beacon. |
| Body | battery | Number | Battery level in percent. |
Query examples
{
"battery": 87
}
Response
| JSON object | ||
|---|---|---|
| success | Boolean | True on success |
Example
{ "success": true }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | id | Beacon not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/beacon/battery.txt · Last modified: 2025/05/16 13:20 by Per Møller