# RestartInstanceOptions

**Kind**: interface | **Module**: [Apps](https://docs.interop.io/desktop/reference/javascript/apps/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/apps/restartinstanceoptions/index.html

Options for restarting an app instance.

## Properties

- **`context`** (`Record<string, any> | "preserve" | "clear"`, optional) default: `"preserve"`
  Context to pass to the restarted instance.
  If you provide `"preserve"` as a value, the context of the original instance will be reused.
  If you provide `"clear"` as a value, the context of the restarted instance will reset to an empty object.
- **`id`** (`string`, required)
  The ID of the instance to restart.
- **`timeout`** (`number`, optional) default: `120000`
  Interval in milliseconds to wait for restarting the app instance.
- **`useOriginalDefinition`** (`boolean`, optional) default: `false`
  If `true`, the original app definition will be used for the restarted instance.
