Say where the round's van is
POST
/rounds/{id}/position
const url = 'https://example.com/rounds/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/position';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"latitude":1,"longitude":1,"occurredAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/rounds/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/position \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "latitude": 1, "longitude": 1, "occurredAt": "2026-04-15T12:00:00Z" }'A fix from the driver’s phone while the round is out, every minute or so and after a big move. Kept for the office’s map and the customer’s tracking page, and shown for twenty minutes. A fix older than the one already kept is ignored, so fixes held back by a patch of no signal cannot move the van backwards; so is one sent once the round is no longer out. A driver’s own round only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
UUID v7
string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
latitude
required
number
longitude
required
number
occurredAt
When it happened, by the device’s clock. Left out, now.
string format: date-time
Examplegenerated
{ "latitude": 1, "longitude": 1, "occurredAt": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”Noted
Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not found
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}