API referenceEndpoints
Read the latest shift handovers with the work each handed over
**Required permission:** `supervision.shift:read`
GET
/supervision/v1/handoversRequired permission: supervision.shift:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Response Body
*/*
curl -X GET "https://example.com/supervision/v1/handovers"{ "handovers": [ { "handed_at": "2019-08-24T14:15:22Z", "handed_by": "string", "handed_to": "string", "handover_id": "string", "note": "string", "shift_starts_at": "2019-08-24T14:15:22Z", "state": "string", "taken_over_at": "2019-08-24T14:15:22Z", "work": { "coaches_on_site": [ { "overrun_minutes": 0, "plate_number": "string", "stage": "string", "stage_entered_at": "2019-08-24T14:15:22Z", "stage_for_seconds": 0, "vehicle_cycle_id": "string", "vehicle_id": "string" } ], "degraded_places": [ { "missing": [ { "code": "string", "details": { "property1": "string", "property2": "string" } } ], "place": { "code": "string", "details": { "property1": "string", "property2": "string" } } } ], "emergency_entries": [ { "access_attempt_id": "string", "access_point_id": "string", "emergency_entry_id": "string", "granted_at": "2019-08-24T14:15:22Z", "granted_by": "string", "lane_id": "string", "overridden_refusal": "string", "plate_number": "string", "reason": "string", "refused_at": "2019-08-24T14:15:22Z", "vehicle_cycle_id": "string", "vehicle_id": "string" } ], "handovers_not_taken_over": [ { "handed_at": "2019-08-24T14:15:22Z", "handed_by": "string", "handed_to": "string", "handover_id": "string" } ], "open_alerts": [ { "acknowledged_by": "string", "alert_id": "string", "cause": { "code": "string", "details": { "property1": "string", "property2": "string" } }, "escalated": true, "open_for_seconds": 0, "place": { "code": "string", "details": { "property1": "string", "property2": "string" } }, "raised_at": "2019-08-24T14:15:22Z", "severity": "string", "type": "string" } ], "overrides": [ { "command_id": "string", "done_at": "2019-08-24T14:15:22Z", "kind": "string", "reason": "string", "requested_by": "string", "result_id": "string", "target_id": "string" } ], "unsettled_clashes": [ { "bay_id": "string", "ends_at": "2019-08-24T14:15:22Z", "first_departure_id": "string", "id": "string", "second_departure_id": "string", "starts_at": "2019-08-24T14:15:22Z", "type": "string" } ] } } ]}