---
title: "Update floor"
method: PATCH
path: "/v1/floorplans/{assetId}/floors/{level}"
tags: ["Floorplans"]
---

# Update floor

`PATCH /v1/floorplans/{assetId}/floors/{level}`

## Path parameters

- `assetId` string, required
- `level` number, required

## Request body

- UpdateFloorDto
  - `floorplanData` object — Floorplan data JSON
    - `unit` 'cm', required
    - `version` string, required
    - `floorNumber` integer, required
    - `floorName` string
    - `Vertices` object[], required
      - `uid` string, required
      - `coord` union[], required
        - union
          - number
          - number
      - `height` number, required
      - `edges` string[], required
    - `Edges` object[], required
      - `uid` string, required
      - `isWall` boolean, required
      - `thickness` number, required
      - `openings` union[], required
        - union
          - object
            - `uid` string, required
            - `openingKind` 'window', required
            - `windowKind` 'hinged' | 'sliding' | 'blinds', required
            - `position` number, required
            - `width` number, required
            - `height` number, required
            - `sillHeight` number, required
            - `openDirectionFlag` boolean
          - object
            - `uid` string, required
            - `openingKind` 'door', required
            - `doorKind` 'hinged' | 'sliding' | 'pocket' | 'garage', required
            - `position` number, required
            - `width` number, required
            - `height` number, required
            - `opensOnFace` string, required
            - `hingeAlignmentFlag` boolean, required
            - `openDirectionOverride` boolean
      - `vertices` union[], required
        - union
          - string, uuid
          - string, uuid
      - `faces` string[], required
    - `Faces` object[], required
      - `uid` string, required
      - `type` 'bedroom' | 'master_bedroom' | 'secondary_bedroom' | 'full_bathroom' | 'half_bathroom' | 'living_room' | 'family_room' | 'game_room' | 'recreation_room' | 'kitchen' | 'dining_room' | 'office' | 'home_gym' | 'walk_in' | 'closet' | 'pantry' | 'laundry' | 'mechanical_room' | 'entry' | 'mudroom' | 'corridor' | 'stair' | 'garage' | 'front_porch' | 'deck' | 'balcony' | 'outdoor' | 'any', required
      - `name` string
      - `edges` string[], required
      - `edgeSenses` boolean[], required
    - `Fixtures` object[], required
      - `uid` string, required
      - `spec` 'ChairOttoman' | 'OfficeChair' | 'CalKingBed' | 'KingBed' | 'QueenBed' | 'FullBed' | 'TwinBed' | 'CribBed' | 'NightStand' | 'Dresser' | 'Sofa1S' | 'Sofa2S' | 'Sofa3S' | 'SofaL' | 'CoffeeTable' | 'MediaUnit' | 'Shower' | 'ShowerM' | 'ShowerL' | 'Bathtub' | 'BathtubFreestanding' | 'Toilet' | 'Sink' | 'DoubleVanity' | 'RectDiningTable6' | 'RectDiningTable8' | 'RoundDiningTable4' | 'SquareDiningTable4' | 'SquareDiningTable8' | 'Stove' | 'Refrigerator' | 'Dishwasher' | 'KitchenSink' | 'KitchenCabinetL' | 'KitchenCabinetStraight' | 'KitchenIsland4P' | 'KitchenIsland2P' | 'KitchenIsland4PWithSink' | 'KitchenIsland2PWithSink' | 'KitchenCounterL' | 'KitchenCounterU' | 'KitchenCounterI' | 'KitchenCounterIMini' | 'KitchenCounterLMini' | 'KitchenCounterUWallCabinets' | 'KitchenCounterLWallCabinets' | 'KitchenCounterLMiniWallCabinets' | 'KitchenCounterIWallCabinets' | 'KitchenCounterIMiniWallCabinets' | 'FloorLamp' | 'Plant' | 'PlantM' | 'PlantS' | 'TableLamp' | 'BBQ' | 'LoungeChair' | 'LoungeChairS' | 'OutdoorDiningTableWithChairs' | 'OfficeDesk' | 'OfficeDeskL' | 'FilingCabinet' | 'WasherAndDryer' | 'WasherAndDryerCombo' | 'Bench' | 'CoatHook' | 'LaundrySink' | 'WaterHeater' | 'ConsoleWithMirror' | 'SideTable' | 'Bookshelf' | 'Credenza' | 'CircularRug' | 'RectangularRug' | 'Sedan' | 'SUV' | 'StraightStaircase' | 'UShapedStaircase' | 'LShapedStaircaseLanding' | 'LShapedStaircaseWinder' | 'PictureFrame' | 'GenericObject' | 'HVACUnit' | 'ClothingRack' | 'PoolTable' | 'PingPongTable' | 'Treadmill' | 'ExerciseBike' | 'WeightRack' | 'GymBench' | 'YogaMat' | 'BuiltInShelf' | 'BuiltInBar' | 'BuiltInBarWithIsland' | 'Column' | 'Post' | 'Railing', required
      - `position` union[], required
        - union
          - number
          - number
      - `rotation` number, required
      - `mirrorX` boolean
      - `mirrorY` boolean
      - `dimensions` object
    - `UnattachedOpenings` union[]
      - union
        - object
          - `uid` string, required
          - `openingKind` 'door', required
          - `doorKind` 'hinged' | 'sliding' | 'pocket' | 'garage', required
          - `width` number, required
          - `height` number, required
          - `position` union[], required
            - union
              - …
          - `rotation` number
        - object
          - `uid` string, required
          - `openingKind` 'window', required
          - `windowKind` 'hinged' | 'sliding' | 'blinds', required
          - `width` number, required
          - `height` number, required
          - `sillHeight` number
          - `position` union[], required
            - union
              - …
          - `rotation` number
  - `visualizerStyleBindings` object[] — Visualizer style bindings for the floor
    - `elementUid` string, uuid, required
    - `elementType` 'all' | 'floor' | 'room' | 'wall' | 'door' | 'window' | 'fixture' | 'ceiling' | 'exterior_wall', required
    - `category` 'general_floor' | 'bathroom_floor' | 'wall' | 'door' | 'window' | 'hard_furniture' | 'soft_furniture' | 'kitchen_countertops' | 'kitchen_cabinets' | 'bathroom_countertops' | 'bathroom_cabinets' | 'rugs' | 'plants' | 'appliances' | 'plumbing_fixtures' | 'waterproof' | 'outdoor_furniture' | 'upholstered' | 'ceiling' | 'deck' | 'balcony' | 'front_porch' | 'gym_equipment' | 'pool_table' | 'ping_pong' | 'yoga_mat', nullable
    - `selectedStyleId` string, uuid, nullable, required
    - `selectedMaterialIds` string[], required
    - `selectedInspirationalImageAssetIds` string[]
    - `selectedColor` string, nullable, required
    - `llmPrompt` string, nullable
    - `inherits` boolean
  - `ceilingHeightMeters` number — Height of ceiling in meters

## Response `200`

Floor updated successfully

- FloorApiResponseDto
  - `success` boolean, required — Indicates if the request was successful
  - `message` string, required — Human readable message
  - `data` object, required — Response data
    - `level` integer, required — Level of floor
    - `origin` 'generated' | 'drawn' | 'uploaded' | 'recognized', nullable, required — How this floor was created; null for legacy pre-column floors
    - `floorplanData` object, required — Floorplan data JSON
      - `unit` 'cm', required
      - `version` string, required
      - `floorNumber` integer, required
      - `floorName` string
      - `Vertices` object[], required
        - `uid` string, required
        - `coord` union[], required
          - union
            - number
            - number
        - `height` number, required
        - `edges` string[], required
      - `Edges` object[], required
        - `uid` string, required
        - `isWall` boolean, required
        - `thickness` number, required
        - `openings` union[], required
          - union
            - object
              - …
            - object
              - …
        - `vertices` union[], required
          - union
            - string, uuid
            - string, uuid
        - `faces` string[], required
      - `Faces` object[], required
        - `uid` string, required
        - `type` 'bedroom' | 'master_bedroom' | 'secondary_bedroom' | 'full_bathroom' | 'half_bathroom' | 'living_room' | 'family_room' | 'game_room' | 'recreation_room' | 'kitchen' | 'dining_room' | 'office' | 'home_gym' | 'walk_in' | 'closet' | 'pantry' | 'laundry' | 'mechanical_room' | 'entry' | 'mudroom' | 'corridor' | 'stair' | 'garage' | 'front_porch' | 'deck' | 'balcony' | 'outdoor' | 'any', required
        - `name` string
        - `edges` string[], required
        - `edgeSenses` boolean[], required
      - `Fixtures` object[], required
        - `uid` string, required
        - `spec` 'ChairOttoman' | 'OfficeChair' | 'CalKingBed' | 'KingBed' | 'QueenBed' | 'FullBed' | 'TwinBed' | 'CribBed' | 'NightStand' | 'Dresser' | 'Sofa1S' | 'Sofa2S' | 'Sofa3S' | 'SofaL' | 'CoffeeTable' | 'MediaUnit' | 'Shower' | 'ShowerM' | 'ShowerL' | 'Bathtub' | 'BathtubFreestanding' | 'Toilet' | 'Sink' | 'DoubleVanity' | 'RectDiningTable6' | 'RectDiningTable8' | 'RoundDiningTable4' | 'SquareDiningTable4' | 'SquareDiningTable8' | 'Stove' | 'Refrigerator' | 'Dishwasher' | 'KitchenSink' | 'KitchenCabinetL' | 'KitchenCabinetStraight' | 'KitchenIsland4P' | 'KitchenIsland2P' | 'KitchenIsland4PWithSink' | 'KitchenIsland2PWithSink' | 'KitchenCounterL' | 'KitchenCounterU' | 'KitchenCounterI' | 'KitchenCounterIMini' | 'KitchenCounterLMini' | 'KitchenCounterUWallCabinets' | 'KitchenCounterLWallCabinets' | 'KitchenCounterLMiniWallCabinets' | 'KitchenCounterIWallCabinets' | 'KitchenCounterIMiniWallCabinets' | 'FloorLamp' | 'Plant' | 'PlantM' | 'PlantS' | 'TableLamp' | 'BBQ' | 'LoungeChair' | 'LoungeChairS' | 'OutdoorDiningTableWithChairs' | 'OfficeDesk' | 'OfficeDeskL' | 'FilingCabinet' | 'WasherAndDryer' | 'WasherAndDryerCombo' | 'Bench' | 'CoatHook' | 'LaundrySink' | 'WaterHeater' | 'ConsoleWithMirror' | 'SideTable' | 'Bookshelf' | 'Credenza' | 'CircularRug' | 'RectangularRug' | 'Sedan' | 'SUV' | 'StraightStaircase' | 'UShapedStaircase' | 'LShapedStaircaseLanding' | 'LShapedStaircaseWinder' | 'PictureFrame' | 'GenericObject' | 'HVACUnit' | 'ClothingRack' | 'PoolTable' | 'PingPongTable' | 'Treadmill' | 'ExerciseBike' | 'WeightRack' | 'GymBench' | 'YogaMat' | 'BuiltInShelf' | 'BuiltInBar' | 'BuiltInBarWithIsland' | 'Column' | 'Post' | 'Railing', required
        - `position` union[], required
          - union
            - number
            - number
        - `rotation` number, required
        - `mirrorX` boolean
        - `mirrorY` boolean
        - `dimensions` object
      - `UnattachedOpenings` union[]
        - union
          - object
            - `uid` string, required
            - `openingKind` 'door', required
            - `doorKind` 'hinged' | 'sliding' | 'pocket' | 'garage', required
            - `width` number, required
            - `height` number, required
            - `position` union[], required
              - …
            - `rotation` number
          - object
            - `uid` string, required
            - `openingKind` 'window', required
            - `windowKind` 'hinged' | 'sliding' | 'blinds', required
            - `width` number, required
            - `height` number, required
            - `sillHeight` number
            - `position` union[], required
              - …
            - `rotation` number
    - `visualizerStyleBindings` object[], required — Visualizer style bindings for the floor
      - `elementUid` string, uuid, required
      - `elementType` 'all' | 'floor' | 'room' | 'wall' | 'door' | 'window' | 'fixture' | 'ceiling' | 'exterior_wall', required
      - `category` 'general_floor' | 'bathroom_floor' | 'wall' | 'door' | 'window' | 'hard_furniture' | 'soft_furniture' | 'kitchen_countertops' | 'kitchen_cabinets' | 'bathroom_countertops' | 'bathroom_cabinets' | 'rugs' | 'plants' | 'appliances' | 'plumbing_fixtures' | 'waterproof' | 'outdoor_furniture' | 'upholstered' | 'ceiling' | 'deck' | 'balcony' | 'front_porch' | 'gym_equipment' | 'pool_table' | 'ping_pong' | 'yoga_mat', nullable
      - `selectedStyleId` string, uuid, nullable, required
      - `selectedMaterialIds` string[], required
      - `selectedInspirationalImageAssetIds` string[]
      - `selectedColor` string, nullable, required
      - `llmPrompt` string, nullable
      - `inherits` boolean
    - `ceilingHeightMeters` number, required — Height of ceiling in meters
    - `createdAt` unknown, required
    - `updatedAt` unknown, required
  - `timestamp` string, date-time, required — Timestamp of the response

---

[API](https://skmtc.dev/maket/apis/virtual-architect-api.md) · [All operations](https://skmtc.dev/maket/apis/virtual-architect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/maket/virtual-architect-api/revisions/b712097baa9c/schema)
