Tracking mode
How often and under what conditions a device transmits its data.
Tracking mode is the device's own data transmission and operating configuration: how often it reports, what wakes it up, and how it behaves between reports. It backs the tracking mode settings on the device's settings tab in the interface.
The fields differ from model to model, because they map onto what each device's firmware exposes, so the request and the response are open objects rather than a fixed shape. Tracking profiles lists what a given model accepts. A model with no tracking settings at all answers error 214.
API actions
API base path: /tracker/settings/tracking.
Get the device's data transmission and operating mode settings. Available to demo accounts.
The fields differ from model to model, so the response is an open object rather than a fixed shape. The tracking profiles page lists what each model accepts. A model with no tracking settings at all answers 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 tracking settings
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 201: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 214: this model has no tracking settings.
Error response object
POST /v2/tracker/settings/tracking/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,
"value": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Errors
These errors come in addition to the general error codes:
201 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
214 - This model has no tracking settings.
Required sub-user rights: tracker_configure.
Send new data transmission and operating mode settings to the device.
This reaches the hardware, so it is not a database-only write. The accepted fields differ from model to model; see the tracking profiles page for what a given model takes.
Requires the tracker_configure right.
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 settings were 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 201: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 214: this model has no tracking settings. Error 219: the tracker is a clone.
Error response object
POST /v2/tracker/settings/tracking/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 194
{
"tracker_id": 123456,
"tracking_settings": {
"tracking_angle": 30,
"tracking_distance": 100,
"tracking_interval": 60,
"on_stop_tracking_interval": 180,
"sleep_mode": "disabled",
"stop_detection": "ignition"
}
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
214 - This model has no tracking settings.
219 - The tracker is a clone.
Last updated
Was this helpful?