POST/events/{eventId}/queries/validate
Validates a Dynamic Docs data table's query under your access and returns the stamp saving it would write, with
its label and term labels. Use before saving a changed table or updating its access. A column you can't use, or a
document filter bound to a column the table doesn't show, is a 400 naming path, usage and reason. Needs Write or
Admin on the document. eventId from Organizations_GetEvents, documentId (the doc's file id) from Drives_GetFiles, blockId from the
document's content.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | 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 | |