Docs

Run Event Query

POST /events/{eventId}/queries

POST/events/{eventId}/queries

Runs a read-only query on an event source (Crew, Collaborator or Area), as Query_RunOrganizationQuery does for the organization, including group headers, aggregates, charts, flags, windows and viewports. Source names come from Query_GetEventQuerySources. The eventId must be the event token's. Needs Event basic access. With storedPreview true (a Dynamic Docs table preview) it returns the stored-run shape instead, the whole result in group order. today (yyyy-MM-dd, the caller's local date) anchors relative dates such as Today; without it they resolve from the UTC date.

Path Parameters

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
sourcestringOptional
selectQuerySelect[]Optional
filterQueryFilterGroupOptional
searchQuerySearchOptional
sortsQuerySort[]Optional
groupBysQueryGroupBy[]Optional
groupKeyQueryGroupKeyPart[]Optional
aggregatesQueryAggregate[]Optional
chartsQueryChart[]Optional
flagsQueryFlag[]Optional
hierarchyQueryHierarchyOptional
pageQueryPageOptional
windowQueryWindowOptional
viewportQueryViewportOptional
includeTotalsbooleanOptional
includeAccessbooleanOptional
timeZonestringOptional
todaystringOptional
storedPreviewbooleanOptional
filtersobjectOptional

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
rowsobject[]| null
groupsStoredQueryGroup[]| null
columnsStoredQueryColumn[]| null
truncatedboolean
brokenboolean
brokenReasonstring| null
brokenDetailBrokenDetail

StoredQueryGroup

FieldTypeDescription
keyQueryGroupKeyPart[]| null
labelsstring[]| null
countinteger

StoredQueryColumn

FieldTypeDescription
aliasstring| null
labelstring| null
kindstring| null
optionsStoredQueryColumnOption[]| null

BrokenDetail

FieldTypeDescription
pathstring| null
usagestring| null
labelstring| null
v1Textstring| null

StoredQueryColumnOption

FieldTypeDescription
idstring| null
labelstring| null
colorstring| null
iconstring| null