Docs

Validate Stored Query

POST /events/{eventId}/queries/validate

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

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
documentIduuidOptional
blockIdstringOptional
sourcestringOptional
queryQueryRequestOptional

QueryRequest

FieldTypeDescription
sourcestring| null
selectQuerySelect[]| null
filterQueryFilterGroup| null
searchQuerySearch| null
sortsQuerySort[]| null
groupBysQueryGroupBy[]| null
groupKeyQueryGroupKeyPart[]| null
aggregatesQueryAggregate[]| null
chartsQueryChart[]| null
flagsQueryFlag[]| null
hierarchyQueryHierarchy| null
pageQueryPage| null
windowQueryWindow| null
viewportQueryViewport| null
includeTotalsboolean
includeAccessboolean
timeZonestring| null
todaystring| null
storedPreviewboolean
filtersobject| null

QuerySelect

FieldTypeDescription
pathstring| null
aliasstring| null
labelstring| null
isLayoutFieldboolean
collectionModestring| null

QueryFilterGroup

FieldTypeDescription
logicstring| null
rulesQueryFilterRule[]| null
groupsQueryFilterGroup[]| null

QuerySearch

FieldTypeDescription
textstring| null
pathsstring[]| null

QuerySort

FieldTypeDescription
pathstring| null
directionstring| null

QueryGroupBy

FieldTypeDescription
pathstring| null
dateBucketstring| null

QueryGroupKeyPart

FieldTypeDescription
pathstring| null
valueJsonElement| null

QueryAggregate

FieldTypeDescription
aliasstring| null
functionstring| null
pathstring| null

QueryChart

FieldTypeDescription
aliasstring| null
pathstring| null
dateBucketstring| null
stackPathstring| null
aggregateQueryAggregate| null
ignoreRuleIdsstring[]| null

QueryFlag

FieldTypeDescription
aliasstring| null
conditionQueryFilterGroup

QueryHierarchy

FieldTypeDescription
includeAncestorsboolean
includeDescendantsboolean
settingRuleIdsstring[]| null
parentIduuid| null

QueryPage

FieldTypeDescription
sizeinteger
cursorstring| null

QueryWindow

FieldTypeDescription
fromdate-time
todate-time
startPathstring| null
endPathstring| null
pointPathsstring[]| null

QueryViewport

FieldTypeDescription
westnumber
southnumber
eastnumber
northnumber
pathstring| null

QueryFilterRule

FieldTypeDescription
idstring| null
pathstring| null
operatorstring| null
valueJsonElement| null

Response

FieldTypeDescription
queryQueryRequest
stampobject| null
stampLabelstring| null
termsValidateStoredQueryResponseTermInfo[]| null

ValidateStoredQueryResponseTermInfo

FieldTypeDescription
labelstring| null