Group
A visual grouping of trackers in the interface, with a title and a colour.
A tracker group organises trackers in the interface. Its function is purely visual: a group carries a title and a colour, and grants nothing and restricts nothing.
Groups are a master-user feature. Every operation here except listing requires the admin right, which cannot be given to a sub-user. A tracker belongs to at most one group, and assigning it to group 0 takes it out of any group.
Group object
API actions
API base path: /tracker/group.
Operations that list no errors of their own return only the general error codes.
Required sub-user rights: admin, available only to master users.
Move several trackers into a group at once. Pass 0 as the group to take them out of any group.
Requires the admin 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.
Target group ID, or 0 to remove the trackers from any group.
167Trackers to move.
[999199,999919]The trackers were assigned
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 group with this ID, or it belongs to another user. Error 217: the list names trackers that do not exist or belong to another user.
Error response object
POST /v2/tracker/group/assign HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"id": 167,
"trackers": [
999199,
999919
]
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No group with this ID, or it belongs to another user.
217 - The list names trackers that do not exist or belong to another user.
Required sub-user rights: admin, available only to master users.
Create a new, empty tracker group. Both title and colour are required.
Requires the admin 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.
Group title.
EmployeesGroup colour in web format without a leading #.
FF6DDCThe created group
true if request finished successfully.
trueID of the new group.
222Bad 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 response object
POST /v2/tracker/group/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"title": "Employees",
"color": "FF6DDC"
}{
"success": true,
"id": 222
}Required sub-user rights: admin, available only to master users.
Delete a group. Its trackers are not deleted: they move to the default group, ID 0.
Requires the admin 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 group to delete.
167The group was 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 201: no group with this ID, or it belongs to another user.
Error response object
POST /v2/tracker/group/delete HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 10
{
"id": 167
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No group with this ID, or it belongs to another user.
Get the account's tracker groups. Reachable from a geo link session as well as a normal one.
There is always a default unnamed group with ID 0. It cannot be changed or deleted and is not returned here.
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.
The groups
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 response object
POST /v2/tracker/group/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"success": true,
"list": [
{
"id": 167,
"title": "Main office",
"color": "FF6DDC"
}
]
}Required sub-user rights: admin, available only to master users.
Change a group's title and colour. Both are required, so this always writes both.
Requires the admin 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 group to update.
167Group title.
EmployeesGroup colour in web format without a leading #.
FF6DDCThe group was 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 201: no group with this ID, or it belongs to another user.
Error response object
POST /v2/tracker/group/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"id": 167,
"title": "Employees",
"color": "FF6DDC"
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No group with this ID, or it belongs to another user.
Last updated
Was this helpful?