Datalogger
Upload track data a device recorded offline, so it joins the tracker's history.
A datalogger is a device that records track data itself rather than streaming it. This operation uploads what it recorded, as a CSV file in a multipart request, so the points join the tracker's history.
The tracker has to be a datalogger. Other models answer error 214.
API actions
API base path: /tracker/datalogger.
Upload recorded track data for a datalogger. Multipart request, with a CSV file in a part named file.
The tracker must be a datalogger; other models answer error 214.
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.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
123456A CSV file of datalogger track data.
The data was accepted
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 201: no tracker with this ID belongs to the account. Error 214: the tracker is not a datalogger. Error 219: the tracker is a clone. Error 233: no file part was sent.
Error response object
POST /v2/tracker/datalogger/upload HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 37
{
"tracker_id": 123456,
"file": "binary"
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No tracker with this ID belongs to the account.
214 - The tracker is not a datalogger.
219 - The tracker is a clone.
233 - No file part was sent.
Last updated
Was this helpful?