تخطَّ إلى المحتوى
توثيق المطورين

Send a bounded location batch

POST /v1/tracking/sessions/{session_id}/locations/batch · Authorization: Bearer

Send a bounded location batch

POST /v1/tracking/sessions/{session_id}/locations/batch · Authorization: Bearer

POST/v1/tracking/sessions/{session_id}/locations/batch

Send 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

NameTypeRequiredDescription
session_idstring (uuid)yesTracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid

Request body

application/json · required

FieldTypeRequiredNotes
eventsTrackingIngestEventCreate[]yes
json
{
  "events": []
}
Minimal valid body

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

FieldTypeRequiredNotes
accepted_countintegeryes
duplicate_countintegeryes
history_written_countintegeryes
rejected_countintegeryes
resultsTrackingBatchEventResult[]yes

Errors

StatusMeaning
401Authentication failed
403Required scope is missing
404Resource not found or is not visible to this tenant
409Conflict or idempotency error
422Validation Error
503Public 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.