SmartGare
API referenceEndpoints

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`

PUT/referential/v1/bays/{id}/fit

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

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareBayFitRequest

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"}