Alarm mode
Turn a tracker's alarm mode on or off, and read whether it is currently on.
Alarm mode is a per-tracker switch held on the device itself. These two operations read it and change it.
Both depend on the hardware. A model that has no alarm mode answers error 214, and because setting the mode reaches the device, an offline tracker answers error 213.
API actions
API base path: /tracker/alarm_mode.
Get whether alarm mode is on for a device. Available to demo accounts. Models that do not support alarm mode answer error 214.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
123456The alarm mode state
true if request finished successfully.
truetrue when alarm mode is on.
Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 204: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 214: the device does not support alarm mode.
Error response object
POST /v2/tracker/alarm_mode/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"tracker_id": 123456
}{
"success": true,
"enabled": true
}Errors
These errors come in addition to the general error codes:
204 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
214 - The device does not support alarm mode.
Change alarm mode on a device. The device must be online, since this reaches the hardware; an offline device answers error 213.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
123456Whether alarm mode should be on.
The change was sent
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 204: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 213: the device is offline. Error 214: the device does not support alarm mode. Error 219: the tracker is a clone.
Error response object
POST /v2/tracker/alarm_mode/set HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"tracker_id": 123456,
"enabled": true
}{
"success": true
}Errors
These errors come in addition to the general error codes:
204 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
213 - The device is offline.
214 - The device does not support alarm mode.
219 - The tracker is a clone.
Last updated
Was this helpful?