Create a new widget, add it to the dashboard, and compute its results
Widget title
1 - 256Widget type
bar, histogram, metric, table, markdown 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
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 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