*** id: 6797ce94-6087-4b60-a297-6bc669ed9146 title: setLayout slug: /node/reference/video/room-session/set-layout description: setLayout method for the RoomSession class. max-toc-depth: 3 ---------------- [video-roomsession-4]: /docs/server-sdk/v3/node/reference/video/room-session/get-layouts ### setLayout * **setLayout**(`params`): `Promise` Sets a layout for the room. You can obtain a list of available layouts with [getLayouts][video-roomsession-4]. #### Parameters | Name | Type | Description | | :------------------ | :--------------- | :---------------------------------------------------- | | `params` | `Object` | - | | `params.name` | `string` | Name of the layout. | | `params.positions?` | `VideoPositions` | Positions to assign as soon as the new layout is set. | #### Returns `Promise` #### Example Set the 6x6 layout: ```typescript await roomSession.setLayout({ name: "6x6" }); ```