Skip to navigation

Run a saved widget query

View as Markdown

Runs the query saved on an Ollie chart widget of this dashboard over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace.

Path parameters

dashboardIdstringRequiredformat: "uuid"
widgetIdstringRequired

Request

This endpoint expects an object.
interval_startdatetimeOptional

Start of the date range, bound to {{window_start}} in the dashboard saved query. Omit for all time.

interval_enddatetimeOptional

End of the date range, bound to {{window_end}} in the dashboard saved query. Omit for now.

Response

Query results
resultslist of objectsOptional

Errors

400
Bad Request Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
501
Not Implemented Error