Dashboards
Author drag-drop dashboards, fork them, summarize with AI, and move them between tenants via the .zip bundle. Every dashboard is a git-tracked YAML artifact.
Author drag-drop dashboards, fork them, summarize with AI, and move them between tenants via the .zip bundle. Every dashboard is a git-tracked YAML artifact.
You’ll learn:
- How the DashboardEditor drag-drop canvas maps to the git-backed YAML on disk
- How the read-only DashboardView applies the filter bar, time picker, kiosk mode, comments, and subscribe
- How to fork, summarize, and export a dashboard as a .zip bundle for cross-tenant migration
Dashboards are git-tracked artifacts
A dashboard is one YAML file at dashboards/<id>.yaml inside the tenant’s git-backed artifact store. PUT /api/dashboards/{id} writes a new commit with the caller as author, and the same fields round-trip on GET: name, description, tiles, refresh_schedule, workspace_id, filters, tags, and custom_css. The author is server-derived from the authenticated session, so a client cannot stamp another user’s identity onto the commit.
Every write is version-controlled. Use GET /api/dashboards/{id}/history for the commit log and GET /api/dashboards/{id}/at/{sha} to fetch the exact YAML at a given SHA. Concurrent edits are gated by an If-Match ETag: a PUT with a stale ETag returns 412 Precondition Failed instead of overwriting a coworker’s change.
# List dashboards you can see. Cursor pagination kicks in when either
# ?limit or ?cursor is set; without them you get the full accessible list.
curl -H "Authorization: Bearer $GONI_PAT" \
"https://your-goni-host/api/dashboards?limit=50"
# Fetch a specific dashboard.
curl -H "Authorization: Bearer $GONI_PAT" \
https://your-goni-host/api/dashboards/exec-overview
Dashboards respect the same default-deny RBAC as every other artifact. Both a workspace ACL and a per-id allow-list must pass; a 404 on GET and DELETE is the same 404 whether the artifact is missing or forbidden, so an embed token cannot use response codes to probe for sibling ids.
Dashboard editor: drag-drop authoring
The dashboard editor renders a grid canvas. Each tile has a drag handle on the tile header that lets you reposition and corner-resize. Layout writes are throttled: the editor buffers changes locally and only commits on drag-stop or resize-stop, so a long drag does not fire a hundred saves.
Tile menu actions are the same on every tile: edit chart, remove tile, and (in view mode) download CSV or PNG. A tile references a saved chart by chart_ref, so editing the chart once updates every dashboard that embeds it. See charts for the underlying artifact.
Saving is a normal PUT:
curl -X PUT https://your-goni-host/api/dashboards/exec-overview \
-H "Authorization: Bearer $GONI_PAT" \
-H "Content-Type: application/json" \
-H "If-Match: \"<etag>\"" \
-d '{
"name": "Executive overview",
"workspace_id": "finance",
"tiles": [{"id":"t-1","chart_ref":"mrr-trend","x":0,"y":0,"w":6,"h":4}],
"filters": [{"col":"country","op":"in","values":["US","DE"]}],
"tags": ["board", "monthly"],
"message": "add country filter"
}'
allow_save is required. Tiles do not carry their own workspace_id; they inherit the dashboard’s. Moving a tile between dashboards, or moving a chart between workspaces, goes through the same artifact-move gate as any other artifact.
Dashboard view: filters, time picker, kiosk
The read side. Three surfaces sit above the tile grid:
- Time picker with named presets (
7d,30d,90d, custom range). Its value flows into every tile that binds to{{time_range}}, so a single picker change refetches the whole board. - Filter bar for dashboard-wide dimension chips. Each chip is a
col op valuestriple; adding one re-parameterizes every tile query that reads that column. - Tile menu for per-tile CSV export, PNG export, and (when the chart is a table) server-side XLSX via
/api/export/xlsx.
Add ?kiosk=1 to the URL to enter kiosk mode. Sidebar, toolbar, and chrome collapse; the tile grid fills the viewport. Press F to toggle. The executive overview preset (/dashboards/exec-overview) opens in kiosk mode.
Print mode uses a print-friendly CSS variant so Print / PDF from the toolbar produces a cleanly paginated document without the app shell.
Comments, subscribe, notifications
The read view carries the collaboration set:
- Comments are threaded per-dashboard via
GET /api/comments?target_kind=dashboard&target_id=<id>andPOST /api/comments(JSON body with matchingtarget_kindandtarget_id). Delete-my-own-comment is gated on/api/me. - Subscribe hooks a dashboard into the alerts and reports subsystem; delivered notifications land on the user’s inbox. See Alerts and scheduled reports.
- Notification bell reads
GET /api/notificationsand postsPOST /api/notifications/{id}/reador.../read-allto clear.
Fork a dashboard
POST /api/dashboards/{id}/fork deep-copies the source with the caller as author, regenerates tile IDs (t-1, t-2, …) so the fork can be edited independently, and defaults the new id to <source>-copy (walking up to -copy-2, -copy-3, … if that exists). You can override id, name, and workspace in the request body.
curl -X POST https://your-goni-host/api/dashboards/exec-overview/fork \
-H "Authorization: Bearer $GONI_PAT" \
-H "Content-Type: application/json" \
-d '{"id":"exec-overview-fy26","name":"Executive overview (FY26)"}'
allow_save plus workspace + per-id ACL on the source are required. If you supply an explicit id that already exists the request returns 409 instead of clobbering; the walk-up default id path only applies when you omit id.
Summarize with AI
POST /api/dashboards/{id}/summary runs each tile over the requested window and asks the grounded AI to produce a short narrative summary of what moved and why. See Ask: grounded AI Q&A for the grounding model. The web UI calls it with a 30-day window from the tile menu overflow.
curl -X POST "https://your-goni-host/api/dashboards/exec-overview/summary?window_days=30" \
-H "Authorization: Bearer $GONI_PAT"
Export and import bundles
GET /api/dashboards/{id}/export.zip streams a bundle for cross-tenant migration. The bundle mirrors Superset’s layout so the shape is familiar:
manifest.yml # { version, exported_at, exporter, dashboards, charts, queries, warnings }
dashboards/<id>.yml # the dashboard body
charts/<id>.yml # every chart referenced by a tile
queries/<id>.yml # every saved query referenced by those charts (query_ref or qr.<id>)
Export walks tiles to charts to queries transitively. A tile whose underlying chart the caller cannot read is skipped and logged in manifest.warnings, not silently shipped.
Import is the inverse:
curl -X POST "https://your-goni-host/api/dashboards/import?overwrite=false" \
-H "Authorization: Bearer $GONI_PAT" \
-F "file=@goni-bundle-exec-overview.zip"
allow_save is required. Bundles are capped at 64 MiB compressed, 128 MiB uncompressed aggregate, and 5000 entries. The importer stages every YAML in memory before writing anything, so a malformed file at index 10 does not leave items 1-9 half-imported. Writes go queries first, then charts, then dashboards, so tile references resolve on first render.
Two safety rules are strict: the filename is the trust anchor, so a dashboards/innocuous.yml whose body claims id: production-revenue is rejected as a filename mismatch; and on ?overwrite=true the caller must own the existing artifact’s workspace, so a guessed id cannot blow away cross-workspace state. Author on every imported artifact is forced to the importing caller so a bundle claiming author: ceo@victim.com cannot commit under that identity.
Tags and workspace scoping
tags is a free-form string list surfaced in the sidebar for filtering. Validation, normalization, and the shared /api/tags aggregation surface are documented in the Tags reference, which also covers the ?tag= URL filter and the cross-artifact taxonomy that dashboards share with charts, notebooks, saved queries, and glossary terms. workspace_id scopes the dashboard to a workspace; the sidebar’s workspace switcher passes ?workspace=<id> to GET /api/dashboards and the server filters server-side. See Access control for how workspaces feed into the default-deny RBAC.
Related
- SQL IDE - the query surface tiles bind to
- Charts - the tile primitive dashboards compose
- Notebooks - narrative-first surface that mixes markdown, SQL, metric, and Python cells
- Alerts and scheduled reports - subscribe delivery
- Access control - workspace and per-id gates
- Audit and lineage - every PUT, fork, and import is recorded
- Embedded analytics - serving a dashboard inside a customer app
Last updated