Skip to content

Subuser tracker

API path: /subuser/tracker.

Contains API calls to control which tracker is available to which sub-user.

bind

Gives access for sub-user to the specified trackers.

required tariff features: multilevel_access – for ALL trackers. required sub-user rights: admin (available only to master users).

parameters

name description type
subuser_id Id of the sub-user belonging to current account. int
trackers List of tracker ids to associate with the specified sub-user. All trackers must belong to current master user. int array

examples

curl -X POST 'https://api.navixy.com/v2/subuser/tracker/bind' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "subuser_id": 204951, "trackers": [127830]}'
https://api.navixy.com/v2/subuser/tracker/bind?hash=a6aa75587e5c59c32d347da438505fc3&subuser_id=204951&trackers=[127830]

response

{
    "success": true
}

errors

  • 13 – Operation not permitted – if user has insufficient rights.
  • 236 – Feature unavailable due to tariff restrictions - if there is at least one tracker without multilevel_access tariff feature.
  • 201 – Not found in the database – if sub-user with such an id does not exist or does not belong to current master user.
  • 262 – Entries list is missing some entries or contains nonexistent entries – if one or more of specified tracker ids don't exist.

list

Gets a list of tracker ids to which this sub-user has access.

required tariff features: multilevel_access – for ALL trackers. required sub-user rights: admin (available only to master users).

parameters

name description type
subuser_id Id of the sub-user belonging to current account. int

examples

curl -X POST 'https://api.navixy.com/v2/subuser/tracker/list' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "subuser_id": 204951}'
https://api.navixy.com/v2/subuser/tracker/list?hash=a6aa75587e5c59c32d347da438505fc3&subuser_id=204951

response

{
    "success": true,
    "list" : [124588]
}
  • list - int array. List of tracker ids to which this sub-user has access.

errors

  • 13 – Operation not permitted – if user has insufficient rights.
  • 236 – Feature unavailable due to tariff restrictions - if there is at least one tracker without multilevel_access tariff feature.
  • 201 – Not found in the database – if sub-user with such an id does not exist or does not belong to current master user.

unbind

Disables access for sub-user to the specified trackers.

required tariff features: multilevel_access – for ALL trackers. required sub-user rights: admin (available only to master users).

parameters

name description type
subuser_id Id of the sub-user belonging to current account. int
trackers List of tracker ids to associate with the specified sub-user. All trackers must belong to current master user. int array

examples

curl -X POST 'https://api.navixy.com/v2/subuser/tracker/unbind' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "subuser_id": 204951, "trackers": [127830]}'
https://api.navixy.com/v2/subuser/tracker/unbind?hash=a6aa75587e5c59c32d347da438505fc3&subuser_id=204951&trackers=[127830]

response

{
    "success": true
}

errors

  • 13 – Operation not permitted – if user has insufficient rights.
  • 236 – Feature unavailable due to tariff restrictions (if there is at least one tracker without multilevel_access tariff feature).
  • 201 – Not found in the database – if sub-user with such an id does not exist or does not belong to current master user.
  • 262 – Entries list is missing some entries or contains nonexistent entries – if one or more of specified tracker ids don't exist.

Last update: April 21, 2021