SmartGare
API referenceEndpoints

Get a bay by code

Returns a bay by code. **Required permission:** `referential.bay:read`

GET/referential/v1/bays/by-code/{code}

Returns a bay by code.

Required permission: referential.bay:read

AuthorizationBearer <token>

In: header

Path Parameters

code*string

Response Body

*/*

*/*

curl -X GET "https://example.com/referential/v1/bays/by-code/string"
{  "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"}