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`
/referential/v1/stations/{stationId}/floor-planReturns 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
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/referential/v1/stations/{stationId}/floor-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"}Retire a station
Removes it from new choices. It is never deleted: an itinerary that called there still points at it. **Required permission:** `referential.station:write`
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`