SmartGare
API referenceEndpoints

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`

POST/traffic/v1/vehicle-mismatches/{id}/resolution

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

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ResolveVehicleMismatchRequest

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"  }}