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`
/traffic/v1/lines/{lineId}/rotationThe 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
Authorization
oauth2 In: header
Query Parameters
dateResponse Body
*/*
curl -X GET "https://example.com/traffic/v1/lines/{lineId}/rotation?on=2019-08-24"{ "line_id": "string", "next": "string", "on": "2019-08-24", "order": [ "string" ], "skips": [ { "departure_id": "string", "line_id": "string", "reason": "string", "skipped_at": "2019-08-24T14:15:22Z", "skipped_authorization_id": "string", "skipped_by": "string", "taken_by_authorization_id": "string", "tie_break_rule_version_id": "string" } ], "turns": [ { "authorization_id": "string", "departure_id": "string", "id": "string", "line_id": "string", "service_date": "2019-08-24", "settled_at": "2019-08-24T14:15:22Z", "settled_by": "string", "settled_cause": "string", "status": "TAKEN", "taken_at": "2019-08-24T14:15:22Z", "taken_by": "string", "tie_break_rule_version_id": "string" } ]}Read a coordination's programme on a line
Which permit and coach drive each departure of a line a coordination operates, over rotation days `from` to `to` (both included, 31 at most): the line's departures are counted from the coordination's reference day in the order they were planned, a departure before the rotation-day start counting with the day before and a cancelled one keeping its place, and the n-th goes to the permit at position n modulo the day's table, frozen coaches left out. With `vehicle_id`, only that coach's departures. Reading records nothing. **Required permission:** `traffic.assignment:read`
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`