> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# changeDashboardDefinition()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/commands/dashboard.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Creates the [IChangeDashboardDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ichangedashboarddefinition/index.md) command.

**Signature:**

```typescript
export declare function changeDashboardDefinition(dashboard: IDashboard, references?: Partial<IDashboardReferences> | ReadonlyArray<IInsight>, correlationId?: string): IChangeDashboardDefinition;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dashboard | [IDashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.idashboard/index.md) | new dashboard definition |
| references | Partial&lt;[IDashboardReferences](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.idashboardreferences/index.md)&gt; \| ReadonlyArray&lt;[IInsight](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iinsight/index.md)&gt; | _(Optional)_ optional partial dashboard references or array of insights used in the dashboard |
| correlationId | string | _(Optional)_ specify correlation id. It will be included in all events emitted during command processing. |

**Returns:**

[IChangeDashboardDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ichangedashboarddefinition/index.md)

change dashboard definition command

## Remarks

Dispatching this command will update the dashboard definition, tabs, layout, filter context, and references in the active dashboard store without remounting or re-initializing the dashboard component.
