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.
| Scope | dataviews:run |
| Asynchronous | No |
| MCP tool | query_virtual_folder |
| Portal permissions | view_folder_views |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
virtual_folder_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | VirtualFolderQueryInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json VirtualFolderValues |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
VirtualFolderQueryInput
| Field | Type | Required | Description |
|---|---|---|---|
level | integer | Required | The level to read, 0 for the outermost (an index into the folder's levels). ≥ -2147483648; ≤ 2147483647 |
parent_values | array of string | Optional | The values picked at the levels above, outermost first; an empty text skips that level. Leave it out for level 0. |
VirtualFolderValues
| Field | Type | Required | Description |
|---|---|---|---|
level | integer | Required | ≥ -2147483648; ≤ 2147483647 |
values | array of string or null | Required | The distinct values at the level, in the folder's order; empty when the level does not exist or the dataview is gone. |
virtual_folder_id | string | Required |