# WorkspaceLayoutSaveByIdConfig

**Kind**: interface | **Module**: [Workspaces](https://docs.interop.io/browser/reference/javascript/workspaces/index.md)

**Source**: https://docs.interop.io/browser/reference/javascript/workspaces/workspacelayoutsavebyidconfig/index.html

Options for saving a Workspace as a Workspace Layout by ID.
When Layout sharing is enabled, each Workspace Layout has a unique ID and Workspace Layout names aren't guaranteed to be unique.
*Available only in **io.Connect Desktop**.*

*Since: io.Connect Desktop 10.5, @interopio/workspaces-api 5.0.0*

## Properties

- **`allowMultiple`** (`boolean`, optional) default: `true` *(since io.Connect Desktop 9.8, io.Connect Browser 3.5, @interopio/workspaces-api 3.5.5)*
  If `true`, will allow opening multiple instances of the same Workspace simultaneously.
- **`id`** (`string`, optional)
  Uniques ID of an existing Workspace Layout to be overwritten with the structure of the current Workspace.
  The Workspace Layout with the specified ID must exist, otherwise the operation will fail.
- **`metadata`** (`object`, optional)
  Metadata that will be saved as part of the Workspace Layout.
- **`name`** (`string`, required)
  Name for the Workspace Layout.
- **`saveContext`** (`boolean`, optional)
  If `true`, the current Workspace context will be saved in the Workspace Layout.
- **`saveWindowContexts`** (`boolean`, optional) default: `false` *(since io.Connect Browser 4.4, @interopio/workspaces-api 4.4)*
  If `true`, the context objects of individual io.Connect Windows set via the `setContext()` method of a `WebWindow` instance
  will be saved when the Workspace Layout is saved. This is valid both for Browser Client apps, as well as for windows that have been
  opened by the Main app or by a Browser Client, but aren't Browser Clients themselves (i.e., don't use the io.Connect libraries).
  If a Browser Client has subscribed for the `onSaveRequested()` event and its context has also been set via the `setContext()` method,
  the context returned by the `onSaveRequested()` event handler will take precedence.
  *Available only in **io.Connect Browser**.*
- **`workspaceId`** (`string`, required)
  ID of the Workspace whose structure will be saved as a Workspace Layout.
