Sub-user trackers
Which of the master account's trackers a sub-user can see.
These operations set a sub-user's scope: the subset of the master account's trackers they can see. Everything associated with a tracker outside that subset is hidden from them too, so binding and unbinding a tracker changes far more than one entry in a list.
API actions
API base path: /subuser/tracker.
Every operation on this page needs the multilevel_access tariff feature on all trackers, and the admin right, which is available only to master users. Failing either returns error 13 for the right and error 236 for the feature, so those two are not repeated per operation below.
Every operation here also returns error 201, Not found in the database, when the sub-user does not exist or belongs to another master user.
Give a sub-user access to trackers.
Everything associated with a tracker the sub-user cannot see is hidden from them too, which is what the introduction calls scoping.
Master users only, and the account needs the multilevel_access plan feature on all trackers. A sub-user calling this gets error 13, and an account without the feature gets error 236.
Also accepts GET with the same parameters as query-string values.
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 a sub-user belonging to the current account.
IDs of the trackers to associate with the sub-user. All must belong to the current master account.
Trackers bound
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: the account lacks the multilevel_access feature.
Error 13: the caller is a sub-user. Error 262: the trackers cannot be bound as requested.
Error response object
POST /v2/subuser/tracker/bind HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"subuser_id": 1,
"trackers": [
1
]
}{
"success": true
}Errors
These errors come in addition to the general error codes:
13 - The caller is a sub-user.
236 - The account lacks the
multilevel_accessfeature.262 - The trackers cannot be bound as requested.
Take away a sub-user's access to trackers.
Master users only, and the account needs the multilevel_access plan feature on all trackers. A sub-user calling this gets error 13, and an account without the feature gets error 236.
Also accepts GET with the same parameters as query-string values.
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 a sub-user belonging to the current account.
IDs of the trackers to remove from the sub-user. All must belong to the current master account.
Trackers unbound
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: the account lacks the multilevel_access feature.
Error 13: the caller is a sub-user. Error 262: the trackers cannot be unbound as requested.
Error response object
POST /v2/subuser/tracker/unbind HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"subuser_id": 1,
"trackers": [
1
]
}{
"success": true
}Errors
These errors come in addition to the general error codes:
13 - The caller is a sub-user.
236 - The account lacks the
multilevel_accessfeature.262 - The trackers cannot be unbound as requested.
List the trackers a sub-user can see.
Master users only, and the account needs the multilevel_access plan feature on all trackers. A sub-user calling this gets error 13, and an account without the feature gets error 236.
Also accepts GET with the same parameters as query-string values.
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 a sub-user belonging to the current account.
The trackers in the sub-user's scope
true if request finished successfully.
trueIDs of the trackers available to the sub-user.
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: the account lacks the multilevel_access feature.
Error 13: the caller is a sub-user.
Error response object
POST /v2/subuser/tracker/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"subuser_id": 1
}{
"success": true,
"list": [
1
]
}Errors
These errors come in addition to the general error codes:
13 - The caller is a sub-user.
236 - The account lacks the
multilevel_accessfeature.
Last updated
Was this helpful?