List a coach cycle's stays
Returns when the coach entered and left each area and how long it stayed, with every correction beside the instant it superseded. **Required permission:** `cycle.coach-cycle:read`
/cycle/v1/coach-cycles/{id}/stage-visitsReturns when the coach entered and left each area and how long it stayed, with every correction beside the instant it superseded.
Required permission: cycle.coach-cycle:read
Authorization
oauth2 In: header
Path Parameters
Response Body
*/*
curl -X GET "https://example.com/cycle/v1/coach-cycles/string/stage-visits"{ "data": [ { "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" } } ]}Question a visit
Records that somebody is not sure about this visit, and why. It stops nothing: the coach keeps moving and may still leave, and only a person settles the doubt. **Required permission:** `cycle.coach-cycle:write`
Issue a temporary access code
Hands a stuck driver a short-lived keypad code for this visit, recording who issued it, why, and how far it reaches. **The code is in this answer and nowhere else** — only a one-way hash is kept, so it cannot be read back and an operator who loses it issues another. How far it reaches is the station's versioned policy, not a choice made here; a station that has authored none issues no code at all. **Required permission:** `cycle.access-code:write`