Add a new device to the system
Response success
Malformed request.
Unauthorized access, invalid credentials were used.
Access forbidden. Current token does not have the necessary authority for the operation.
Invalid data was sent.
{- "DeviceID": "00:11:22:33:44:55",
- "AlertState": "off"
}{- "DeviceID": "00:AA:BB:CC:DD:EE",
- "Position": [
- 10.2112,
- 1.1234,
- -5.3209
], - "Orientation": [
- -0.1234,
- 0.4312,
- 0,
- 0.5432
], - "DeviceFlags": 3,
- "AlertState": "active",
- "FirmwareHash": "ec95199c",
- "FirmwareVersion": "0.10.0",
- "DeviceType": "anchor",
- "LastUpdateTime": "2019-08-24T14:15:22Z",
- "BatteryLevel": 0.85,
- "LastGatewaySource": "ZK://501::3F2504E0-4F89-11D3-9A0C-0305E82C3301::UDP::10.0.0.220:10000",
- "HardwareType": -1
}Update device settings.
Response success
Malformed request.
Unauthorized access, invalid credentials were used.
Access forbidden. Current token does not have the necessary authority for the operation.
Resource was not found.
Invalid data was sent.
{- "AlertState": "active"
}{- "status": 200,
- "success": true
}Set the alert state of a device
Response success
Malformed request.
Unauthorized access, invalid credentials were used.
Access forbidden. Current token does not have the necessary authority for the operation.
Resource was not found.
Invalid data was sent.
{- "AlertState": "active"
}{- "status": 200,
- "success": true
}Response success
Malformed request.
Unauthorized access, invalid credentials were used.
Access forbidden. Current token does not have the necessary authority for the operation.
Resource was not found.
Invalid data was sent.
{- "command": "pairing on"
}{- "status": 200,
- "success": true
}