v15

latestOpenAPI 3.1.02026-07-1295183803.5 KB
Tracking_Asset

Update asset attributes. (add)

put/skynet/asset/{id}/attributes

Query parameters

keystring 32 character alphanumeric string required
Example:key=API_KEY

A key is a unique identifier that is required to authenticate a request to the API.

Request body

attributesobject required

attributes can be used to add any useful information or context to your assets like the vehicle type, shift timing etc. These attributes can also be used to filter assets in Search, Monitor, and Get Asset List queries.

Provide the attributes to be added or updated, in key:value format. If an existing key is provided in the input, then the value will be modified as per the input value. If a new key is provided in the input, then the key would be added to the existing set. The contents of any value field are neither altered nor removed unless specifically referred to by its key in the input request.

Please note that the maximum number of key:value pairs that can be added to an attributes object is 100. Also, the overall size of attributes object should not exceed 65kb.

Response

messagestring

Displays the error message in case of a failed request. If the request is successful, this field is not present in the response.

statusstring

A string indicating the state of the response. On successful responses, the value will be Ok. Indicative error messages are returned for different errors. See the API Error Codes section below for more information.