*** id: b662ef15-6945-429c-ac9f-ef7f54350988 title: setMeta slug: /js/reference/video/room-session/set-meta description: setMeta method for the RoomSession class. max-toc-depth: 3 ---------------- ### setMeta * **setMeta**(`meta`): `Promise` Assigns custom metadata to the RoomSession. You can use this to store metadata whose meaning is entirely defined by your application. Note that calling this method overwrites any metadata that had been previously set on this RoomSession. #### Parameters The medatada object to assign to the RoomSession. #### Returns `Promise` #### Permissions * `room.set_meta` 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 ```js await roomSession.setMeta({ foo: "bar" }); ```