Declare which coaches a bay takes
States the longest coach the bay takes, in metres, and the family it belongs to. Both replace what the bay held; an omitted value is cleared. **Required permission:** `referential.bay:write`
/referential/v1/bays/{id}/fitStates the longest coach the bay takes, in metres, and the family it belongs to. Both replace what the bay held; an omitted value is cleared.
Required permission: referential.bay:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
*/*
curl -X PUT "https://example.com/referential/v1/bays/string/fit" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}Decommission a bay
Permanently decommissions a bay. **Required permission:** `referential.bay:write`
List the rules naming a bay
Every rule version whose scope names the bay, whatever its state, with its domain, the module that reads it and whether it is mandatory — what decommissioning the bay would touch, read before anything changes (RULES-051). The rules are the rules module's facts, so the caller also needs `referential.rule:read`. **Required permission:** `referential.bay:read`