SmartGare
API referenceEndpoints

Search vehicle mismatches

Returns the differences on one departure, or the open ones station-wide, oldest first, at most 200. **Required permission:** `traffic.assignment:read`

GET/traffic/v1/vehicle-mismatches

Returns the differences on one departure, or the open ones station-wide, oldest first, at most 200.

Required permission: traffic.assignment:read

AuthorizationBearer <token>

In: header

Query Parameters

scheduled_departure_id?string

The departure whose differences are read; every departure when omitted.

open_only?boolean

Only the differences still open. True when omitted.

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/vehicle-mismatches"
[  {    "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"  }]