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

Digital output

Switch a device's built-in digital outputs, one at a time or all at once.

A digital output is a switch built into the device. These operations change it, which is how an integration turns something on the vehicle on and off remotely.

Two calls do the same job in different ways, and a model's output_control field says which one it accepts: output/set switches a single output, output/set_all sets every output at once and needs an array matching the number of outputs the model has. Both reach the hardware, so the device must be online.

An output reserved for the engine-block feature cannot be switched here, for safety. To rename an output rather than switch it, use tracker/output/update.

API actions

API base path: /tracker/output.


Required sub-user rights: tracker_set_output.

Switch all outputs

post
/tracker/output/set_all

Set the state of every digital output at once. The device must be online.

The array must match the number of outputs the model has; a mismatch answers error 214, as does a model that does not support batch switching.

Requires the tracker_set_output 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
tracker_idintegerRequired

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

Example: 999199
outputsboolean[]Required

Desired state of every output in order. [true, true, false] turns outputs 1 and 2 on and output 3 off.

Example: [true,true,false]
Responses
400

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.

application/json
successbooleanOptional

Always false.

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

{
  "tracker_id": 999199,
  "outputs": [
    true,
    true,
    false
  ]
}
{
  "success": false,
  "status": {
    "code": 201,
    "description": "Not found in database"
  },
  "errors": [
    {
      "parameter": "limit",
      "error": "must not be null"
    }
  ]
}

Errors

These errors come in addition to the general error codes:

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

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

  • 213 - The device is offline.

  • 214 - The device does not support this operation.

  • 219 - The tracker is a clone.


Required sub-user rights: tracker_set_output.

Switch one output

post
/tracker/output/set

Change the state of a single digital output. The device must be online.

Some models accept this call and others only output/set_all; the model's output_control field says which. An output reserved for the engine-block feature cannot be switched here, for safety, and answers error 214.

To rename an output rather than switch it, use tracker/output/update.

Requires the tracker_set_output 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
tracker_idintegerRequired

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

Example: 999199
outputinteger · min: 1Required

Which output to change, counting from 1.

Example: 1
enablebooleanRequired

Whether the output should be on.

Responses
400

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.

application/json
successbooleanOptional

Always false.

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

{
  "tracker_id": 999199,
  "output": 1,
  "enable": true
}
{
  "success": false,
  "status": {
    "code": 201,
    "description": "Not found in database"
  },
  "errors": [
    {
      "parameter": "limit",
      "error": "must not be null"
    }
  ]
}

Errors

These errors come in addition to the general error codes:

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

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

  • 213 - The device is offline.

  • 214 - The device does not support this operation.

  • 219 - The tracker is a clone.

Last updated

Was this helpful?