POST/organizations/{orgId}/queries/validate
Validates a data table's query in an organization-drive Dynamic Docs doc, as Query_ValidateStoredQuery does for an
event doc: returns the stamp saving it would write, with its label and term labels, and a column you can't use (or
a source with no organization scope, such as Area) is a 400 naming it. Needs Edit on the doc, which must be on this
organization's drive. orgId from Users_GetOrganizations, documentId from Drives_GetFiles, blockId from the doc's
content.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| documentId | uuid | Optional | |
| blockId | string | Optional | |
| source | string | Optional | |
| query | QueryRequest | Optional | |
QueryRequest
| Field | Type | Description |
|---|
| source | string| null | |
| select | QuerySelect[]| null | |
| filter | QueryFilterGroup| null | |
| search | QuerySearch| null | |
| sorts | QuerySort[]| null | |
| groupBys | QueryGroupBy[]| null | |
| groupKey | QueryGroupKeyPart[]| null | |
| aggregates | QueryAggregate[]| null | |
| charts | QueryChart[]| null | |
| flags | QueryFlag[]| null | |
| hierarchy | QueryHierarchy| null | |
| page | QueryPage| null | |
| window | QueryWindow| null | |
| viewport | QueryViewport| null | |
| includeTotals | boolean | |
| includeAccess | boolean | |
| timeZone | string| null | |
| today | string| null | |
| storedPreview | boolean | |
| filters | object| null | |
QuerySelect
| Field | Type | Description |
|---|
| path | string| null | |
| alias | string| null | |
| label | string| null | |
| isLayoutField | boolean | |
| collectionMode | string| null | |
QueryFilterGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| rules | QueryFilterRule[]| null | |
| groups | QueryFilterGroup[]| null | |
QuerySearch
| Field | Type | Description |
|---|
| text | string| null | |
| paths | string[]| null | |
QuerySort
| Field | Type | Description |
|---|
| path | string| null | |
| direction | string| null | |
QueryGroupBy
| Field | Type | Description |
|---|
| path | string| null | |
| dateBucket | string| null | |
QueryGroupKeyPart
| Field | Type | Description |
|---|
| path | string| null | |
| value | JsonElement| null | |
QueryAggregate
| Field | Type | Description |
|---|
| alias | string| null | |
| function | string| null | |
| path | string| null | |
QueryChart
| Field | Type | Description |
|---|
| alias | string| null | |
| path | string| null | |
| dateBucket | string| null | |
| stackPath | string| null | |
| aggregate | QueryAggregate| null | |
| ignoreRuleIds | string[]| null | |
QueryFlag
| Field | Type | Description |
|---|
| alias | string| null | |
| condition | QueryFilterGroup | |
QueryHierarchy
| Field | Type | Description |
|---|
| includeAncestors | boolean | |
| includeDescendants | boolean | |
| settingRuleIds | string[]| null | |
| parentId | uuid| null | |
QueryPage
| Field | Type | Description |
|---|
| size | integer | |
| cursor | string| null | |
QueryWindow
| Field | Type | Description |
|---|
| from | date-time | |
| to | date-time | |
| startPath | string| null | |
| endPath | string| null | |
| pointPaths | string[]| null | |
QueryViewport
| Field | Type | Description |
|---|
| west | number | |
| south | number | |
| east | number | |
| north | number | |
| path | string| null | |
QueryFilterRule
| Field | Type | Description |
|---|
| id | string| null | |
| path | string| null | |
| operator | string| null | |
| value | JsonElement| null | |
Response
| Field | Type | Description |
|---|
| query | QueryRequest | |
| stamp | object| null | |
| stampLabel | string| null | |
| terms | ValidateStoredQueryResponseTermInfo[]| null | |
ValidateStoredQueryResponseTermInfo
| Field | Type | Description |
|---|
| label | string| null | |