*** id: c08b952a-f803-4d75-b44d-67b575b04812 title: setLayout slug: /js/reference/video/room-session/set-layout description: setLayout method for the RoomSession class. max-toc-depth: 3 ---------------- ### setLayout * **setLayout**(`params`): `Promise` Sets a layout for the room. You can obtain a list of available layouts with [getLayouts](/docs/browser-sdk/v3/js/reference/video/room-session/get-layouts). #### Parameters Object containing the parameters of the method. Name of the layout. Positions to assign as soon as the new layout is set. #### Returns `Promise` #### Permissions * `room.set_layout` * `room.set_position` (if you need to assign positions) You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side. #### Example Set the 6x6 layout: ```javascript await roomSession.setLayout({ name: "6x6" }); ```