SmartGare
API referenceEndpoints

Withdraw a programme swap

Puts both departures back on their programmed coach while neither has gone; a coach already committed under the swap is replaced by the programmed one. The swap is kept, with who withdrew it and when. **Required permission:** `traffic.programme-swap:write`

POST/traffic/v1/programme-swaps/{id}/withdrawal

Puts both departures back on their programmed coach while neither has gone; a coach already committed under the swap is replaced by the programmed one. The swap is kept, with who withdrew it and when.

Required permission: traffic.programme-swap:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/programme-swaps/string/withdrawal"
{  "commitment_ids": [    "string"  ],  "departure_id": "string",  "departure_vehicle_id": "string",  "id": "string",  "partner_departure_id": "string",  "partner_vehicle_id": "string",  "withdrawn_at": "2019-08-24T14:15:22Z",  "withdrawn_by": "string"}