Update Tracker
Push a GPS position for a tracker in the current company. Send the same device id on every update. Lockii stores the tracker as tracker_{companyId}_{id} and creates it on the first report. A position of 0,0, or outside -90 to 90 latitude and -180 to 180 longitude, is ignored and the previous coordinates stay in place. Pass lifetime kilometres as odometerKm or odometer when the device reports them. App connections need the booking:write or inventory:write scope.
curl -X PUT "https://dash.lockii.app/api/v1/tracker" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"lat": 0,
"lng": 0
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
batterynumberBattery percentage from 0 to 100. Omitted reports store 100.
idstringrequiredDevice id from your GPS provider. Stored as tracker_{companyId}_{id}.
latany ofrequiredLatitude in decimal degrees, as a number or a numeric string.
lngany ofrequiredLongitude in decimal degrees, as a number or a numeric string.
namestringDisplay name. Omitted reports use Tracker {id}.
odometerany ofLifetime kilometres, as a number or a numeric string. Used when odometerKm is omitted.
odometerKmany ofLifetime kilometres, as a number or a numeric string.
speedany ofSpeed reported by the device.
Response
JSON result for this operation.
messageenum<string>requiredOne of:Tracker location updated
{
"message": "Tracker location updated"
}