API referenceEndpoints
List departure zones
Returns the current zones by code, or the retired ones with status=RETIRED. **Required permission:** `referential.bay:read`
GET
/referential/v1/departure-zonesReturns the current zones by code, or the retired ones with status=RETIRED.
Required permission: referential.bay:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Query Parameters
status?string
Default
"ACTIVE"Value in
- "ACTIVE"
- "RETIRED"
Response Body
*/*
curl -X GET "https://example.com/referential/v1/departure-zones"[ { "bay_ids": [ "string" ], "code": "string", "created_at": "2019-08-24T14:15:22Z", "id": "string", "locality_ids": [ "string" ], "name": "string", "retired_at": "2019-08-24T14:15:22Z", "retirement_reason": "string", "spare_bay_id": "string", "status": "string" }]Retire a ticket counter
Retires a counter: it is kept with its code, no new shift opens there, and an open shift there is still counted and closed. **Required permission:** `referential.station:write`
Declare a departure zone
Creates a zone from its bays, its spare bay and the towns it serves. **Required permission:** `referential.bay:write`