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

# update_dashboard

> Rename a dashboard, add reports to it and arrange its tiles, in one call.

Rename a dashboard, add reports to it, arrange its tiles, any of the three in
one call, and return `tile_changes`, `layout_changes` and the `layout` as it now
stands. Pass at least one of `name`, `description`, `reports` or `layout_rows`.
Removing a tile is done in the web app.

`reports` adds each report as the tiles it can render: a chart and a pivot table
make two tiles, a report with neither is skipped. `visualization_types` narrows
that to one of them. `layout_rows` is applied after the reports are added, so
one call can add and place them, naming new tiles by `report_id`; it is the
whole arrangement, and a tile left out is kept, not removed.

A report's `visualization_types` narrows the tiles it adds to its chart or its
pivot table; [`list_reports`](https://docs.qobra.co/mcp_documentation/tools/list_reports) names what
each report can render in its `available_visualizations`. A new tile has no
`visualization_id` yet, so name it by its `report_id` in `layout_rows`. A tile
you leave out of `layout_rows` goes after the others, one per row, and an empty
list resets the page, one tile per row.

Adding and arranging never fail over one bad entry: they do what they can and
say so per row. **Read the `outcome` of every `tile_changes` and
`layout_changes` row before reporting success.** A report can come back
`not_found`, `no_visualization` when it has no chart or pivot table yet,
`already_added`, or `type_not_available` for each type you asked for that it
does not offer, even when its other tile was added.

Read the returned `layout` rather than assuming your rows were kept as sent: a
row holds at most three charts, or two tiles when one is a pivot table, and one
that overflows is split.

You need write access on the dashboard itself. A dashboard shared with you
read-only is refused with a message saying the share is read-only; pick one
you can edit from [`list_dashboards`](https://docs.qobra.co/mcp_documentation/tools/list_dashboards),
or create a new one with
[`create_dashboard`](https://docs.qobra.co/mcp_documentation/tools/create_dashboard). A dashboard
you cannot read at all is refused as not found.

Every write to the live environment is recorded in the audit trail as the `Qobra
MCP` agent; writes to a sandbox are not audited.

## Parameters

> [accordion] Body
>
> **dashboard\_id** `string` *required*
>
> Id from list\_dashboards or create\_dashboard. The dashboard names its
> environment: there is no sandbox\_id.
>
> **name** `string`
>
> New name. Omit to keep the current one.
>
> **description** `string`
>
> New free-text note about what the dashboard is for. Omit to keep the current
> one; "" clears it.
>
> **reports** `object[]`
>
> Reports to add, each as every tile it can render (chart, pivot table or
> both) unless its visualization\_types narrows it. Omit to leave the tiles
> untouched.
>
> **object properties**
>
> **report\_id** `string` *required*
>
> Id of the report to add, as list\_reports returns it.
>
> **visualization\_types** `string[]`
>
> Which of its tiles to add: `chart`, `pivot_table`, or both. Omit to add
> every tile the report offers, which is what you want unless the caller
> asked for one of the two; list\_reports names what each report offers in
> its available\_visualizations.
>
> **layout\_rows** `string[][]`
>
> The whole arrangement, rows top to bottom, each row's tiles left to right.
> An entry is a visualization\_id from get\_dashboard, or a report\_id (every
> tile of that report: the only way to place tiles this same call adds). A row
> holds at most three charts, or two tiles when one is a pivot table; an
> overflowing row is split. A tile you leave out goes after the others, one
> per row. Omit to leave the arrangement alone; \[] resets it, one tile per
> row.

## Example

Add a report's pivot table to an existing dashboard and put it on the first
row, next to a tile already on the page:

```json theme={null}
{
  "dashboard_id": "665f1c2e8a4b3d0012a7ec10",
  "reports": [
    { "report_id": "665f1c2e8a4b3d0012a7eb03", "visualization_types": ["pivot_table"] }
  ],
  "layout_rows": [
    ["665f1c2e8a4b3d0012a7ed20", "665f1c2e8a4b3d0012a7eb03"]
  ]
}
```

`665f1c2e8a4b3d0012a7ed20` is the `visualization_id` of a tile already on the
dashboard, as [`get_dashboard`](https://docs.qobra.co/mcp_documentation/tools/get_dashboard) lists
it. Every tile left out of `layout_rows` goes after the others, one per row.

## Response

> [accordion] Body
>
> **dashboard** `object`
>
> The dashboard as it now stands after the update.
>
> **object properties**
>
> **id** `string`
>
> **resource\_url** `string`
>
> Web app link to this dashboard.
>
> **name** `string`
>
> **description** `string | null`
>
> **updated\_at** `string`
>
> **tile\_changes** `object[]`
>
> What became of each report you passed, one row per tile: a report added as
> both a chart and a pivot table gets a row for each, so does each type you
> asked for that the report lacks, and one not found or with no tile at all
> gets a single row, with visualization\_type null. Read `outcome` on each
> before reporting success, since a call can succeed having added nothing you
> asked for. Empty when no reports were passed.
>
> **object properties**
>
> **outcome** `string`
>
> "added": put on the dashboard. "already\_added": the dashboard already
> had it, so a re-sent call is a no-op. "not\_found": no report you can
> read, living where the dashboard does, has that id. "no\_visualization":
> the report has neither a chart nor a pivot table. "type\_not\_available":
> a type asked for in visualization\_types that the report lacks, whether
> or not its other tile landed. One of: `added`, `already_added`,
> `not_found`, `no_visualization`, `type_not_available`.
>
> **report\_id** `string`
>
> The id you passed, as you spelled it.
>
> **report** `object`
>
> The report it resolved to; null when not found.
>
> **object properties**
>
> **id** `string`
>
> **name** `string`
>
> **visualization\_type** `string`
>
> The tile this row is about: chart or pivot\_table (for
> type\_not\_available, the type the report lacks). Null when the row is
> about the whole report: not\_found or no\_visualization. One of: `chart`,
> `pivot_table`.
>
> **explanation** `string`
>
> Why, and what to do next. Null for a tile that landed.
>
> **layout** `object[]`
>
> The dashboard's rows as they now stand, top to bottom, each tile left to
> right — read back from the dashboard, so it shows where every tile actually
> sits. A tile this call added lands on a row of its own at the end. Empty
> when the dashboard has no tile yet. Rows passed in layout\_rows are applied
> after the reports are added and come back as the store took them: a row
> holds at most three charts or two pivot tables and is split when it
> overflows, and a tile you left out keeps its place on a row of its own.
>
> **object properties**
>
> **visualizations** `object[]`
>
> The tiles on this row, left to right. Rows read top to bottom.
>
> **object properties**
>
> **visualization\_id** `string`
>
> Id of the tile, as get\_dashboard lists it.
>
> **name** `string`
>
> The tile's own title: renamable in the web app, so not always its
> report's name.
>
> **report** `object`
>
> The report this tile renders.
>
> **object properties**
>
> **id** `string`
>
> **name** `string`
>
> **visualization\_type** `string`
>
> chart or pivot\_table. One of: `chart`, `pivot_table`.
>
> **layout\_changes** `object[]`
>
> One row per layout entry you passed, saying what became of it. Empty when no
> layout\_rows were passed.
>
> **object properties**
>
> **outcome** `string`
>
> "placed": positioned by this call. "already\_placed": an earlier entry
> placed it, a tile sitting on one row only. "not\_found": neither a tile
> of this dashboard nor a report on it. One of: `placed`,
> `already_placed`, `not_found`.
>
> **reference** `string`
>
> The layout entry you passed.
>
> **explanation** `string`
>
> Why, and what to do next. Null for an entry placed.
