Declare a station's floor plan
Replaces the station's whole plan — its floors by level and the outline of each placed unit. An identical declaration writes nothing and answers changed false. A unit whose drawn surface departs from its recorded one beyond the tolerance is warned about; the plan is saved. **Required permission:** `referential.commercial-unit:write`
/referential/v1/stations/{stationId}/floor-planReplaces the station's whole plan — its floors by level and the outline of each placed unit. An identical declaration writes nothing and answers changed false. A unit whose drawn surface departs from its recorded one beyond the tolerance is warned about; the plan is saved.
Required permission: referential.commercial-unit:write
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
curl -X PUT "https://example.com/referential/v1/stations/{stationId}/floor-plan" \ -H "Content-Type: application/json" \ -d '{ "floors": [ { "drawing_svg": "string", "height_m": 0, "level": 0, "name": "string", "width_m": 0 } ], "placements": [ { "commercial_unit_id": "string", "level": 0, "outline": [ { "x": 0.1, "y": 0.1 } ] } ] }'{ "changed": true, "plan": { "floors": [ { "drawing_svg": "string", "height_m": 0, "id": "string", "level": 0, "name": "string", "sample": true, "width_m": 0 } ], "placements": [ { "commercial_unit_id": "string", "drawn_m2": 0, "floor_id": "string", "level": 0, "outline": [ { "x": 0.1, "y": 0.1 } ] } ], "station_id": "string" }, "warnings": [ { "commercial_unit_id": "string", "drawn_m2": 0, "recorded_m2": 0, "unit_name": "string" } ]}Get a station's floor plan
Returns the floors by level, with their drawings, and the placed units; empty lists when the station has no plan. **Required permission:** `referential.commercial-unit:read`
Read the station's logo
Answers the logo with its file in base64, what it is, its size and who gave it when; a station with no logo reads its id alone. **Required permission:** `referential.station:read`