# RestoreWorkspaceByIdConfig

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

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

Options for restoring a Workspace from a Workspace Layout by the unique ID of the Layout.
*Available only in **io.Connect Desktop**.*

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

## Properties

- **`activateFrame`** (`boolean`, optional) *(since io.Connect Desktop 9.4, @interopio/workspaces-api 3.3.2)*
  If `true`, the `Frame` instance containing the restored Workspace will be activated.
  This means that the window of the `Frame` instance will gain focus, will be restored to its normal state (e.g., if it has been previously minimized),
  and will be brought in front of other existing windows.
  Defaults to the configuration passed in the `workspaces.json` file or to `false`.
  *Available only in **io.Connect Desktop**.*
- **`allowSystemHibernation`** (`boolean`, optional)
  If `true`, will allow the Workspace to be hibernated via the platform configuration.
  This setting doesn't apply to programmatic hibernation via the `hibernate()` method of a `Workspace` instance.
- **`applicationName`** (`string`, optional)
  Name of the Workspaces App that will be used for creating the new `Frame` instance.
  *Available only in **io.Connect Desktop**.*
- **`context`** (`object`, optional)
  Object that will be set as a window context for all windows in the Workspace.
- **`frameId`** (`string`, optional)
  ID of an existing `Frame` instance. If provided, the Workspace will be opened in that `Frame` instance.
- **`icon`** (`string`, optional)
  Icon for the Workspace. The icon will represent the Workspace tab when the Workspace is pinned.
- **`isPinned`** (`boolean`, optional)
  If `true`, the Workspace will be opened in a pinned state.
- **`isSelected`** (`boolean`, optional)
  If `true`, the Workspace will be selected (on focus) in the `Frame` instance when opened.
- **`layoutId`** (`string`, required)
  Unique ID of the Workspace Layout to restore.
  The Workspace Layout with the specified ID must exist, otherwise the operation will fail.
- **`loadingStrategy`** (`LoadingStrategy`, optional)
  Loading strategy for the Workspace.
- **`newFrame`** (`NewFrameConfig | boolean`, optional)
  If `true`, the Workspace will be opened in a new `Frame` instance.
  Pass a `NewFrameConfig` object to provide settings for the new `Frame` instance.
- **`noTabHeader`** (`boolean`, optional)
  If `true`, the Workspace will be opened without a Workspace tab.
- **`positionIndex`** (`number`, optional)
  Position for the Workspace within the `Frame` instance.
  This index will be ignored by the `init()` method when initializing an empty `Frame` instance.
- **`reuseWorkspaceId`** (`string`, optional)
  ID of an existing Workspace that will be replaced by the restored Workspace.
- **`title`** (`string`, optional)
  Title for the Workspace.

## Related types

- [LoadingStrategy](https://docs.interop.io/browser/reference/javascript/workspaces/loadingstrategy/index.md)
- [NewFrameConfig](https://docs.interop.io/browser/reference/javascript/workspaces/newframeconfig/index.md)
