> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# updateMeta

> updateMeta method for the RoomSession class.

### updateMeta

* **updateMeta**(`meta`): `Promise<void>`

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<void>`

#### Permissions

* `room.set_meta`

You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/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 }`
```