For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.


Bind trackers to sub-user

post
/subuser/tracker/bind

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.

Authorizations
AuthorizationstringRequired

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.

Body
subuser_idinteger · min: 1Required

ID of a sub-user belonging to the current account.

trackersinteger[]Required

IDs of the trackers to associate with the sub-user. All must belong to the current master account.

Responses
200

Trackers bound

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/subuser/tracker/bind
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_access feature.

  • 262 - The trackers cannot be bound as requested.


Unbind trackers from sub-user

post
/subuser/tracker/unbind

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.

Authorizations
AuthorizationstringRequired

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.

Body
subuser_idinteger · min: 1Required

ID of a sub-user belonging to the current account.

trackersinteger[]Required

IDs of the trackers to remove from the sub-user. All must belong to the current master account.

Responses
200

Trackers unbound

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/subuser/tracker/unbind
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_access feature.

  • 262 - The trackers cannot be unbound as requested.


List sub-user trackers

post
/subuser/tracker/list

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.

Authorizations
AuthorizationstringRequired

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.

Body
subuser_idinteger · min: 1Required

ID of a sub-user belonging to the current account.

Responses
200

The trackers in the sub-user's scope

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
listinteger[]Optional

IDs of the trackers available to the sub-user.

post/subuser/tracker/list
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_access feature.

Last updated

Was this helpful?