Send a bounded location batch
POST /v1/tracking/sessions/{session_id}/locations/batch · Authorization: Bearer
POST
/v1/tracking/sessions/{session_id}/locations/batchSend a bounded location batch
Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own client_event_id. Requires tracking:write.
- Credential
Authorization: Bearer- Plane
https://api.bardiyamap.com- Operation id
sendLocationBatch
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string (uuid) | yes | Tracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid |
Request body
application/json · required
| Field | Type | Required | Notes |
|---|---|---|---|
events | TrackingIngestEventCreate[] | yes |
json
{
"events": []
}Request example
shell
curl -X POST "https://api.bardiyamap.com/v1/tracking/sessions/ses_01HX9Z6Q3M/locations/batch" \
-H "Authorization: Bearer $BARDIYA_TRACKING_KEY" \
-H "Content-Type: application/json" \
--data '{"events":[]}'Response 200 · TrackingBatchIngestResponse
| Field | Type | Required | Notes |
|---|---|---|---|
accepted_count | integer | yes | |
duplicate_count | integer | yes | |
history_written_count | integer | yes | |
rejected_count | integer | yes | |
results | TrackingBatchEventResult[] | yes |
Errors
| Status | Meaning |
|---|---|
401 | Authentication failed |
403 | Required scope is missing |
404 | Resource not found or is not visible to this tenant |
409 | Conflict or idempotency error |
422 | Validation Error |
503 | Public transport is temporarily unavailable |
Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.
POST /v1/tracking/sessions/{session_id}/locations/batch is part of the Tracking group. Values on this page are generated from contract version 1.1.0.
