> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# updateRecording()

> Updates the layout of an active cloud recording.

Paid plans only

`updateRecording(options)`

✓ Prebuilt✓ Custom

Only applies to recordings using the `"cloud"` [recording type](https://docs.daily.co/docs/guides/features/recording). Requires the caller to be [an owner or recording admin](https://docs.daily.co/reference/rest-api/meeting-tokens/create-meeting-token.md#body-properties-permissions) (a participant with `'recording'` in their `canAdmin` permission).

## Parameters

**layout** `DailyStreamingLayoutConfig`

The new layout configuration. See [`DailyStreamingLayoutConfig`](https://docs.daily.co/reference/daily-js/types/daily-streaming-layout-config) for all presets and options.

**instanceId** `string`

The UUID of the recording instance to update. Omit to update the default instance.

## Return value

Returns `void`.

## Example

```javascript theme={null}
// Switch to single-participant layout
call.updateRecording({
  layout: {
    preset: 'single-participant',
    session_id: 'abcd123...',
  },
});

// Update a specific instance with a custom VCS layout
call.updateRecording({
  instanceId: '00000000-0000-4000-8000-000000000000',
  layout: {
    preset: 'custom',
    composition_params: {
      mode: 'dominant',
      showTextOverlay: true,
      'text.content': 'Hello',
      'videoSettings.roundedCorners': true,
    },
  },
});
```

## See also

> [card] Types
>
> * [DailyStreamingOptions](https://docs.daily.co/reference/daily-js/types/daily-streaming-options.md)
> * [DailyStreamingLayoutConfig](https://docs.daily.co/reference/daily-js/types/daily-streaming-layout-config.md)

> [card] Methods
>
> * [startRecording()](https://docs.daily.co/reference/daily-js/instance-methods/start-recording.md)
> * [stopRecording()](https://docs.daily.co/reference/daily-js/instance-methods/stop-recording.md)
> * [updateLiveStreaming()](https://docs.daily.co/reference/daily-js/instance-methods/update-live-streaming.md)

> [card] Events
>
> * [Recording events](https://docs.daily.co/reference/daily-js/events/recording-events.md)

> [card] Guides
>
> * [Recording](https://docs.daily.co/docs/guides/features/recording)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.