Upload standalone location reports
POST/api/v1/gateways/:gatewayId/locations
Accepts a batch of standalone location reports and queues them for async processing. Used when the SDK captures location fixes independently of BLE packet scans. Location data is also denormalized onto each packet in the packets endpoint.
As for packets, a missing or null required field fails the batch with
400 invalid_payload, while a fix with a latitude or longitude of
0, or a timestamp that is 0 or out of range, is dropped on its own and
the batch is still accepted with 202.
A gateway an administrator has disabled is refused with 403
gateway_disabled. Disabling also revokes its tokens, so it normally
sees 401 token_revoked first; the 403 is what it gets if a token
survived. Uploads can still be accepted for up to 30 seconds
after a disable.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 429
- 503
Location batch accepted and queued.
Invalid request.
Invalid or expired credentials.
Gateway is disabled.
Gateway not found (gateway_not_found): the path gatewayId is not a
UUID, does not match the gateway the bearer token was issued to, or has
no registration. Not retryable.
Rate limited.
Service temporarily unavailable.