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

LED

Read and switch a tracker's indicator LED, on models that expose it.

Some device models expose their indicator LED to the Navixy platform. These operations read whether it is on and switch it.

Only models that expose an LED switch support either call, and switching one reaches the hardware rather than changing a stored setting.

API actions

API base path: /tracker/led.


Read LED state

post
/tracker/led/read

Get whether the device's indicator LED is on. Available to demo accounts, and only for models that expose an LED switch.

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
tracker_idintegerRequired

ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.

Example: 999199
Responses
200

The LED state

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
valuebooleanOptional

true when the LED is on.

post/tracker/led/read
POST /v2/tracker/led/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "tracker_id": 999199
}
{
  "success": true,
  "value": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - No tracker with this ID belongs to the account.

  • 208 - The tracker exists but is blocked, normally because its tariff ended.

  • 214 - The device does not support this operation.


Switch the LED

post
/tracker/led/update

Turn the device's indicator LED on or off. This reaches the hardware.

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
tracker_idintegerRequired

ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.

Example: 999199
valuebooleanRequired

The new LED state.

Responses
200

The change was sent

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/tracker/led/update
POST /v2/tracker/led/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "tracker_id": 999199,
  "value": true
}
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - No tracker with this ID belongs to the account.

  • 208 - The tracker exists but is blocked, normally because its tariff ended.

  • 214 - The device does not support this operation.

Last updated

Was this helpful?