Search bays
Returns bays matching optional text, station area and status filters. **Required permission:** `referential.bay:read`
/referential/v1/baysReturns bays matching optional text, station area and status filters.
Required permission: referential.bay:read
Authorization
oauth2 In: header
Query Parameters
Matches part of a bay code.
Restrict to one lifecycle status; defaults to ACTIVE.
Value in
- "ACTIVE"
- "DECOMMISSIONED"
- "ACTIVE"
- "DECOMMISSIONED"
Result ordering.
Value in
- "codeAsc"
- "codeDesc"
- "newest"
- "oldest"
- "codeAsc"
- "codeDesc"
- "newest"
- "oldest"
- "codeAsc"
- "codeDesc"
- "newest"
- "oldest"
Zero-based page index.
int320 <= valuePage size, at most 200.
int320 <= value <= 200Response Body
*/*
curl -X GET "https://example.com/referential/v1/bays"{ "data": [ { "code": "string", "created_at": "2019-08-24T14:15:22Z", "family": "string", "height_m": 0, "id": "string", "length_m": 0, "max_coach_length_m": 0, "position": 0, "sector": "string", "spare": true, "station_area_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "use": "string", "zone_id": "string" } ], "page": 0, "size": 0, "total": 0}Open one barrier to try it
Orders the barrier at the address open once through the station's hardware bridge, with no coach and no visit; it goes back by itself. Answers the order's outcome — DELIVERED, NOT_DELIVERED or OUTCOME_UNKNOWN — and never fails because of the bridge. DELIVERED says the order was taken, never that the arm rose. Each request opens it once, even while a coach's visit is open at that lane. **Required permission:** `referential.barrier-test-opening:create`
Declare a bay
Creates a bay in a station area. **Required permission:** `referential.bay:write`