Update Dashboard Widget
Update a widget’s fields within this dashboard, using copy-on-write for shared widgets.
If the widget belongs only to this dashboard it is updated in place; if it is
referenced by more than one dashboard, a new widget is created with the updates
applied and swapped into this dashboard’s widget_order, leaving the other
dashboards’ copy untouched. The widget must already be in this dashboard’s
widget_order, otherwise the call is rejected. The result is recomputed
synchronously when the query changes or when the widget was cloned; otherwise the
existing cached result is returned. For table widgets, conditional-formatting
column references are re-resolved against the (possibly updated) query on each save.
The dashboard must exist and not be archived.
Authorizations
Headers
Body
Widget title
1 - 256Query that returns a series of records (used for table/bar/histogram/donut/scatter widgets).
Used for widget types: table, bar, histogram, donut, scatter. Returns: {"type": "series", "data": [...]}
Example SQL equivalent: SELECT category, AVG(score) as avg_score, COUNT(*) as count FROM evaluation_items WHERE score > 0.5 AND category = 'test' GROUP BY category ORDER BY avg_score DESC LIMIT 100
- SeriesQuery
- MetricQuery
Chart-specific display configuration
Response
Successful Response
Response model for widget creation - includes widget and computed result
Unique identifier of the widget
Widget title
Widget type
bar, histogram, donut, scatter, metric, table, markdown, heading, timeseries Account that owns this widget
When the widget was created
"evaluation_widget"Query that returns a series of records (used for table/bar/histogram/donut/scatter widgets).
Used for widget types: table, bar, histogram, donut, scatter. Returns: {"type": "series", "data": [...]}
Example SQL equivalent: SELECT category, AVG(score) as avg_score, COUNT(*) as count FROM evaluation_items WHERE score > 0.5 AND category = 'test' GROUP BY category ORDER BY avg_score DESC LIMIT 100
- SeriesQuery
- MetricQuery
Display configuration
Computed result for this widget

