List document queries
Changed onRetrieve queries associated with a document by its identifier. The specified document must be a saved document with at least one query in the workbook.
An organization API key can pass userId to list the queries as that member instead of the key's creator — the member's access to the document decides what's returned. A user-scoped key can only ever act as itself.
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/documents/{documentId}/queries
- AuthHTTP bearer
Path parameters
The unique identifier of the document. This can be retrieved by opening File > Document settings and clicking Settings. The Identifier field contains the document ID.
Query parameters
Organization API key required. The membership ID of the user to act as.
Response
Every saved query in the document, in tab order.
Note that when a document has a presentation (dashboard or app), the layout decides which queries are rendered. This means that this response may include queries that aren't included in a layout.
Example response
{
"queries": [
{
"url": "https://org.omni.co/w/abc123?key=1"
}
]
}Changes
- breaking
the
//response's property format changed fromuuidto no format for status - breaking
the
//response's property type changed fromobjectto no type for status - warning
the optional response header
Deprecationremoved for the status200 - warning
the optional response header
Linkremoved for the status200 - warning
the optional response header
Sunsetremoved for the status200 - info
api operation id
getDocumentQueriesremoved and replaced withdocumentsGetQueries - info
endpoint reactivated
- info
added the new optional
queryrequest parameteruserId - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the response property
became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
added the required property
//to the response with the status
- breaking