Update a widget and compute its results. If the widget is only used by this dashboard, it is updated in place. If shared across multiple dashboards, a copy is created.
Widget title
1 - 256Query that returns a series of records (used for table/bar/histogram widgets).
Used for widget types: table, bar, histogram. 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
Chart-specific display configuration
Successful Response
Response model for widget creation - includes widget and computed result
Unique identifier of the widget
Widget title
Widget type
bar, histogram, metric, table, markdown, heading Account that owns this widget
When the widget was created
"evaluation_widget"Query that returns a series of records (used for table/bar/histogram widgets).
Used for widget types: table, bar, histogram. 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
Display configuration
Computed result for this widget