Track Device Variables
Stores metadata for a specific device.
Endpoint
Method:
POSTPath:
/api/v4/track_device_variablesDescription: Stores metadata variables for a specific device.
Authentication
See License API Authorization.
Required headers
Date(string) — RFC7231 GMT date stringAuthorization(string)
Recommended headers
Accept: application/jsonContent-Type: application/json
Request
Body parameters
hardware_id (string, required) — Unique hardware ID generated for the client device
product (string, required) — Product short code
variables (object, required) — JSON key-value object, with keys being variable names and values being the values to set for those variables. Values may be string, number or boolean
license_key (string, optional) — Required if product is key-based
username (string, optional) — Required if product is user-based
license_id (number, optional) — Ensures that the action affects only the license with the specified ID. Useful if you have multiple licenses for the same product assigned to the same user.
Hints
Variables are sent as a JSON object, where parameter is the variable name and value is the value of the variable, e.g.:
"variables": { "some_variable_name": "some value", "another_variable_name": "another value" }
If a variable already exists on the device, its value will be overwritten.
Device variables can also be set during activation by providing a variables parameter in the activation payload. For examples, see: Activate License (Online Method) and Deactivate Bundle (Offline Method).
Schema
Examples
Successful and error responses
License Authorization Method
There are two types of product licenses based on how the client application authorizes itself to interact with a license:
Key-based product licenses: client interactions with the license have to be authorized using a
license_keyUser-based product licenses: the license has a corresponding "license user" instead of a license key. Client interactions with the license have to be authorized using a
username
Errors
If an error occurs, the response will have an HTTP status code of 400 or higher, and the response body will contain an error description in the following format:
JSON Schema
List of exceptions
Last updated
Was this helpful?