Run a saved document query
Changed onRun one of a document's saved queries and returns the results as JSON, CSV, or XLSX. Only adding and updating existing filters is supported. To modify more than a query's filters before running it, see the Running document queries with APIs guide.
View access is required to run queries that are shown as tiles on a dashboard, or any saved query on a document with an app. All other saved queries require access to the document's workbook.
This API is the only way to run a dashboard tile for a user with read-only access to a dashboard. To run a query definition you supply yourself, use the Run query API instead.
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/documents/{documentId}/queries/{queryId}/run
- AuthHTTP bearer
Path parameters
Document identifier (either document ID or identifier slug)
The saved query to run: its queryIdentifierMapKey, or its query presentation id, from GET /v1/documents/{documentId}/queries.
Query parameters
Organization API key required. The membership ID of the user to act as.
Request body
Example request
{
"filters": {
"chargers.id": "CH-1042"
},
"resultType": "json"
}Response
The saved query ran; the body is its result document.
Result rows keyed by field name. Returned when resultType is json.
Changes
- info
endpoint added
- info