API referenceEndpoints
Correct a bay
Corrects the position, dimensions, sector and use of a bay; its code is unchanged. **Required permission:** `referential.bay:write`
PATCH
/referential/v1/bays/{id}Corrects the position, dimensions, sector and use of a bay; its code is unchanged.
Required permission: referential.bay:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*CorrectBayRequest
Response Body
*/*
*/*
*/*
curl -X PATCH "https://example.com/referential/v1/bays/string" \ -H "Content-Type: application/json" \ -d '{ "position": 0, "sector": "string", "use": "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"}