Skip to main content

Read the values at one level of a virtual folder.

POST/api/v1/virtual-folders/{virtual_folder_id}/querydataviews:run

The distinct values of the folder's column at level, under the values picked at the levels above (parent_values, outermost first; an empty text skips a level), as the Folder Views tree opens a node. Read-only. Needs View Folder Views and access to the folder's dataview (403 otherwise); an unknown folder or a level beyond the folder's levels answers no values.

Scopedataviews:run
AsynchronousNo
MCP toolquery_virtual_folder
Portal permissionsview_folder_views

Parameters​

NameInTypeRequiredDescription
virtual_folder_idpathstringRequired
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonVirtualFolderQueryInput

Responses​

StatusDescriptionBody
200Success.application/json VirtualFolderValues
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

VirtualFolderQueryInput​

FieldTypeRequiredDescription
levelintegerRequiredThe level to read, 0 for the outermost (an index into the folder's levels). ≥ -2147483648; ≤ 2147483647
parent_valuesarray of stringOptionalThe values picked at the levels above, outermost first; an empty text skips that level. Leave it out for level 0.

VirtualFolderValues​

FieldTypeRequiredDescription
levelintegerRequired≥ -2147483648; ≤ 2147483647
valuesarray of string or nullRequiredThe distinct values at the level, in the folder's order; empty when the level does not exist or the dataview is gone.
virtual_folder_idstringRequired