Skip to main content
Laps are the core timing records in PitPath Chrono. Each lap belongs to a participant, is captured by a specific rig, and is scoped to an event, car, and track layout. Sector times are stored individually so you can analyze split performance in addition to the overall lap time.
1

Confirm required IDs are available

Before posting a lap you need the following UUIDs. All are required — the API returns 400 Bad Request if any are missing or invalid.
2

Record a lap

Send a POST request to /api/v1/laps. This endpoint requires the CRUD or ADMIN role, or a rig-scoped API key.
A 201 Created response returns the recorded lap:
sectors is an array of integers where each element represents a sector time in milliseconds. The number of sectors must match the track layout’s sector configuration. totalTime should equal the sum of all sector values — Chrono stores both independently but does not enforce equality, so ensure your timing hardware calculates them from the same source.
3

Query laps

Retrieve all laps with GET /api/v1/laps, or use the paginated endpoint for larger datasets:
The paged response wraps results in a PageResponse envelope:
Retrieve a single lap by ID with GET /api/v1/laps/{lapId}.
4

Update a lap

Use PATCH /api/v1/laps/{lapId} to correct a recorded lap. This endpoint requires the CRUD or ADMIN role. All fields are optional — only the fields you include are changed.
Setting valid to false excludes the lap from all official results and leaderboards. This flag is the authoritative source for result validity — use it to mark laps that were cut, recorded under yellow flags, or otherwise ineligible. Invalidating a lap cannot be undone automatically; you must explicitly PATCH it back to valid: true if needed.