Status
The individual activity states, such as busy or not busy, that a tracker can be set to.
A working status records what an employee is currently doing, tracked through the device they carry. The simplest case is a pair, "busy" and "not busy", and an employee's device is set to one of them at any moment.
Statuses do not stand alone. Each belongs to a working status list, and a tracker can only be set to a status from the list assigned to it. Different trackers can carry different lists, so create the list first and add statuses to it with the operations here.
Working statuses are a tariff feature. An account with no tracker whose plan includes statuses gets error 236 from every operation on this page. For the task-management side of the same feature, see how statuses change task states.
Working status object
API actions
API base path: /status.
Required sub-user rights: tracker_update.
Add a working status to a status list.
Pass the status object without id. An id that is sent anyway is ignored rather than rejected.
Requires the tracker_update right. Requires the statuses tariff feature on at least one tracker. Without it the call returns error 236.
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 status list to add to.
The created working status
true if request finished successfully.
trueID of the new working status.
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 236: no tracker on the account has the statuses feature. Error 268: the account's quota for working statuses is exhausted.
Error response object
POST /v2/status/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"listing_id": 1,
"status": {
"id": 1,
"label": "text",
"color": "text"
}
}{
"success": true,
"id": 1
}Errors
These errors come in addition to the general error codes:
201 - Not found in the database, when no list has the given ID.
236 - Feature unavailable due to tariff restrictions, when no tracker on the account has the
statusestariff feature.268 - Over quota, when the user's quota for working statuses is exceeded.
Required sub-user rights: tracker_update.
Delete a working status.
Requires the tracker_update right. Requires the statuses tariff feature on at least one tracker. Without it the call returns error 236.
Also accepts GET with the same parameters as query-string values.
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 working status. Must belong to the current account.
Working status deleted
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 236: no tracker on the account has the statuses feature.
Error response object
POST /v2/status/delete HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"status_id": 1
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - Not found in the database, when no working status has the given ID.
236 - Feature unavailable due to tariff restrictions, when no tracker on the account has the
statusestariff feature.
Return the working statuses of one status list, in display order.
A list ID belonging to another account returns an empty array rather than an error.
Requires the statuses tariff feature on at least one tracker. Without it the call returns error 236.
Also accepts GET with the same parameters as query-string values.
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 status list.
The working statuses
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 236: no tracker on the account has the statuses feature.
Error response object
POST /v2/status/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"listing_id": 1
}{
"success": true,
"list": [
{
"id": 1,
"label": "text",
"color": "text"
}
]
}Errors
These errors come in addition to the general error codes:
236 - Feature unavailable due to tariff restrictions, when no tracker on the account has the
statusestariff feature.
Required sub-user rights: tracker_update.
Change a working status's label or colour.
id is required inside the object. Omitting it currently returns error 6 rather than a validation error.
A working status cannot be moved between lists; delete it and create it again.
Requires the tracker_update right. Requires the statuses tariff feature on at least one tracker. Without it the call returns error 236.
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.
Working status updated
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 236: no tracker on the account has the statuses feature.
Error response object
POST /v2/status/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"status": {
"id": 1,
"label": "text",
"color": "text"
}
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - Not found in the database, when no working status has the given ID.
236 - Feature unavailable due to tariff restrictions, when no tracker on the account has the
statusestariff feature.
More in this section
Tracker's working status
Listing
Tracker's working status list
Last updated
Was this helpful?