*** id: 9324a243-d40a-471c-8eea-83dabafa65a6 title: updateMeta slug: /js/reference/video/room-session/update-meta description: updateMeta method for the RoomSession class. max-toc-depth: 3 ---------------- ### updateMeta * **updateMeta**(`meta`): `Promise` Updates the RoomSession metadata by only setting the specified fields. This is different from [setMeta](#setmeta), which replaces the whole metadata object. #### Parameters The update to the metadata. #### 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 roomSession.on("room.updated", (e) => { // We can set an event listener to log changes to the metadata. console.log(e.room.meta); }); await roomSession.setMeta({ foo: "bar", baz: true }); // The logger will now print `{ foo: "bar", baz: true }` await roomSession.updateMeta({ baz: false, t: 10 }); // The logger will now print `{ foo: "bar", baz: false, t: 10 }` ```