Update dashboard
fastero_update_dashboardChange a dashboard’s name, description, layout, filter bar or tabs; fields not sent stay as they are. layout, filters and tabs each replace the whole list, so send the full list with the change made: fastero_get_dashboard has the current ones. A chart left out of layout comes off this dashboard only, and the chart, its query and its place on other dashboards stay (fastero_delete_report deletes a chart everywhere). fastero_save_chart adds one chart from SQL without resending the layout. Returns the dashboard with its url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A new name. | |
| tabs | No | The dashboard’s tabs, replacing the whole list; [] removes them and every chart is on one page again. Each entry is { id, name }: id a short string unique on the dashboard, which layout entries name as tabId; name at most 60 characters. Filters and the date grouping apply across every tab. At most 12. | |
| layout | No | The charts on the dashboard, replacing the whole list. Each entry is { reportId, i, x, y, w, h, tabId?, height? }: reportId a report of this project (fastero_list_reports); i a unique string for the entry, such as the reportId. Fastero shows any summary first, then number cards, charts and tables, each in the order of this list. The first line or time-series chart leads at full width, other charts pair up two across, and one with w over 6 takes the full width (a pie never does); x, y and h change nothing on screen, which follows the order of this list, but keep y then x in that order: the PDF attached to dashboard emails and the editor’s Reset sort by them. height 'tall' makes a chart, and the one beside it, half as tall again. tabId is the tab an entry is on when the dashboard has tabs; an entry naming none is on the first. | |
| filters | No | The dashboard’s filter bar, replacing the whole list; [] removes every filter. Each filter narrows every chart whose result has its column, and a dropdown lists the values in the data. Each entry is { column, type, label?, default? }: column spelled as the charts’ results name it; type one of dateRange, select, multiselect, number, text; a dateRange default is { start, end }, each YYYY-MM-DD. At most 20. | |
| projectId | Yes | The project’s id, from fastero_list_projects. | |
| dashboardId | Yes | A dashboard’s id, from fastero_list_dashboards. | |
| description | No | A new description. |