Correct an occupancy recorded in error
Appends a correction naming the arrival or departure entry recorded in error and the instant that is true instead; the entry stays as it was, the bay's occupancy carries the true instant, and the correction is announced with instants only. **Required permission:** `traffic.occupancy-correction:write`
/traffic/v1/occupancy-correctionsAppends a correction naming the arrival or departure entry recorded in error and the instant that is true instead; the entry stays as it was, the bay's occupancy carries the true instant, and the correction is announced with instants only.
Required permission: traffic.occupancy-correction:write
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/traffic/v1/occupancy-corrections" \ -H "Content-Type: application/json" \ -d '{ "corrects_entry_id": "string", "reason": "string", "true_instant": "2019-08-24T14:15:22Z" }'{ "bay_occupancy_id": "string", "corrected_at": "2019-08-24T14:15:22Z", "corrected_by": "string", "corrected_entry_id": "string", "correction_entry_id": "string", "freed_at": "2019-08-24T14:15:22Z", "occupied_at": "2019-08-24T14:15:22Z"}Read whose turn it is on a line
The line's authorizations in the order of its source document, the one whose turn is next — an authorization whose turn was given back first — and the latest turns taken, given back and used up, and the authorizations operators passed over with their reasons. Naming the next turn records nothing. **Required permission:** `traffic.assignment:read`
Swap a coordination departure's coach with a later departure's
The departure's programmed coach cannot run it: the partner's coach takes it and the departure's coach takes the partner, the next departure of the line unless one is named. Kept beside the programme with its cause, reason, author and instant; the programme read and the designation before departure apply it, and every other departure keeps its coach. A coach already committed to either departure is replaced by the swapped one. **Required permission:** `traffic.programme-swap:write`