SmartGare
API referenceEndpoints

Declare a commercial unit

Declares an active unit inside a station area; the name is unique within the station. **Required permission:** `referential.commercial-unit:write`

POST/referential/v1/commercial-units

Declares an active unit inside a station area; the name is unique within the station.

Required permission: referential.commercial-unit:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareCommercialUnitRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/commercial-units" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "station_area_id": "string",    "station_id": "string",    "surface_m2": 0  }'
{  "corrected_at": "2019-08-24T14:15:22Z",  "corrected_by": "string",  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "name": "string",  "retired_at": "2019-08-24T14:15:22Z",  "retired_by": "string",  "station_area_id": "string",  "station_id": "string",  "status": "ACTIVE",  "surface_m2": 0}