Settle a vehicle mismatch
Confirms the observed coach as the departure's coach — an ordinary replacement, judged as the entrance judges one — or keeps the commitment, with the operator's reason. The closure is journalled and announced. **Required permission:** `traffic.vehicle-mismatch:resolve`
/traffic/v1/vehicle-mismatches/{id}/resolutionConfirms the observed coach as the departure's coach — an ordinary replacement, judged as the entrance judges one — or keeps the commitment, with the operator's reason. The closure is journalled and announced.
Required permission: traffic.vehicle-mismatch:resolve
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/traffic/v1/vehicle-mismatches/string/resolution" \ -H "Content-Type: application/json" \ -d '{ "reason": "string", "resolution": "string" }'{ "mismatch": { "assigned_vehicle_id": "string", "bay_assignment_id": "string", "bay_occupancy_id": "string", "confirmed_assignment_id": "string", "id": "string", "observed_at": "2019-08-24T14:15:22Z", "observed_vehicle_id": "string", "raised_at": "2019-08-24T14:15:22Z", "resolution": "string", "resolution_reason": "string", "resolved_at": "2019-08-24T14:15:22Z", "resolved_by": "string", "scheduled_departure_id": "string", "status": "string", "vehicle_assignment_id": "string" }}Get a vehicle mismatch
**Required permission:** `traffic.assignment:read`
Read the departures a coach is committed to
Returns the coach's live commitments in the order it runs them, each with the bay its departure leaves from where one is assigned, and the moment the answer was current as of. Read from the coach's own commitments, never from what the cameras saw. A coach committed to nothing answers with no departures rather than failing. **Required permission:** `traffic.assignment:read`