API referenceEndpoints
Search coach cycles
Returns cycles matching optional coach and status filters, newest first. **Required permission:** `cycle.coach-cycle:read`
GET
/cycle/v1/coach-cyclesReturns cycles matching optional coach and status filters, newest first.
Required permission: cycle.coach-cycle:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Query Parameters
vehicle_id?string
The coach whose visits are wanted.
status?string
Whether the visit is still being written, or final.
Value in
- "OPEN"
- "CLOSED"
page?integer
Zero-based page index.
Format
int32Range
0 <= valuesize?integer
Page size, at most 200.
Format
int32Range
0 <= value <= 200Response Body
*/*
curl -X GET "https://example.com/cycle/v1/coach-cycles"{ "data": [ { "closed_at": "2019-08-24T14:15:22Z", "current_stage": "ENTRY", "current_stay": { "corrections": [ { "boundary_sequence": 0, "corrected_at": "2019-08-24T14:15:22Z", "cycle_id": "string", "id": "string", "previous_at": "2019-08-24T14:15:22Z", "reason": "string", "recorded_at": "2019-08-24T14:15:22Z", "recorded_by": "string" } ], "duration": "string", "entered_at": "2019-08-24T14:15:22Z", "left_at": "2019-08-24T14:15:22Z", "stage": "ENTRY", "timing": { "limit": "string", "limit_at": "2019-08-24T14:15:22Z", "limit_state": "RESOLVED", "overstay": "string", "planned_end": { "at": "2019-08-24T14:15:22Z", "basis": "ARRIVAL", "departure_id": "string" }, "status": "WITHIN_LIMIT", "vehicle_type": "string" } }, "entry_access_point_id": "string", "id": "string", "identification": "FULL", "last_access_point_id": "string", "last_transition_at": "2019-08-24T14:15:22Z", "late": { "departure_id": "string", "late_by_minutes": 0, "late_by_seconds": 0, "reached_at": "2019-08-24T14:15:22Z", "scheduled_at": "2019-08-24T14:15:22Z" }, "observed_plate": "string", "opened_at": "2019-08-24T14:15:22Z", "opened_by": "string", "status": "OPEN", "subject": "CONFIRMED_VEHICLE", "under_review": true, "vehicle_id": "string" } ], "page": 0, "size": 0, "total": 0}