dashboards

Preview Widget

Run a widget config without saving it (Agent-Native PR 3).

The metric layer has had POST /metrics/preview since the Metrics Composition program; an assembled widget had no equivalent, so the only way to learn whether a report produced numbers was to persist it and look. For an agent that is the wrong order — it should verify before a human sees anything.

The config is validated with the same gate the write path uses, then composed and executed through run_widget_query. There is no second execution path, and nothing is persisted.

post/api/v1/dashboards/widgets/preview

Request body

viz_type'line' | 'bar' | 'pie' | 'number' | 'pivot' | 'logs_table' | 'heatmap' required
start_datestring date required
end_datestring date required
category_idstring uuid nullable
property_idsstring[] nullable
property_ids_excludestring[] nullable

Response

Successful Response

Changes

No recorded changes to this endpoint across all 1 revision of this API.