Run a saved document query
Changed onRuns one of the document's saved queries as it is saved and returns its results as a single JSON, CSV, or XLSX document. The query is read on the server: the caller can replace or add filters for the run, but cannot change anything else about what runs. A tile the document's dashboard shows, or any query of a document with an app, runs for anyone who can view the document, as on the dashboard or app itself; any other saved query, such as a hidden tile or a tab not on the dashboard, needs access to the workbook.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/documents/{identifier}/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 /api/v1/documents/{identifier}/queries.
Query parameters
Target user ID (for org-scoped API keys)
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 (the default).
Changes
- breaking
removed
subschema #6subschema #7subschema #8subschema #9subschema #10subschema #11subschema #12subschema #13from the/request propertyanyOflist - info
added
subschema #6subschema #7subschema #8subschema #9subschema #10subschema #11subschema #12subschema #13to the/request propertyanyOflist
- breaking
- info
added the new optional request property
- info