Docs

Execute Public File Link Document Query

POST /public/file-links/{linkId}/files/{documentId}/document/query/{blockId}

POST/public/file-links/{linkId}/files/{documentId}/document/query/{blockId}

Runs one data table in a doc reached by a public file link, like DynamicDocs_ExecuteQuery but with no authentication. Each filter takes the viewer's value, else the link's preset value, else its defaults; a value outside the link's allowed values returns 400, a preset outside them is ignored, and an unresolved filter the link restricts takes all its allowed values. A table that binds a restricted filter with anything but a membership test returns 400. A data table never returns brokenDetail here. Ids come from Drives_GetPublicFileLink, blockId from the doc's content. This is a read despite being a POST.

Path Parameters

FieldTypeRequiredDescription
linkIduuidRequired
documentIduuidRequired
blockIdstringRequired

Request Body

FieldTypeRequiredDescription
filtersobjectOptional

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

QueryGroupKeyPart

FieldTypeDescription
pathstring| null
valueJsonElement| null

StoredQueryColumnOption

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