SmartGare
API referenceEndpoints

Declare a bay

Creates a bay in a station area. **Required permission:** `referential.bay:write`

POST/referential/v1/bays

Creates a bay in a station area.

Required permission: referential.bay:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareBayInput

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/bays" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "position": 0,    "sector": "string",    "station_area_id": "string",    "use": "string"  }'
{  "id": "string"}