Run a dataview.
POST/api/v1/dataviews/{dataview_id}/executedataviews:run
The result is an execution table of the dataview's columns, filtered and sorted and paged by a snapshot position.
| Scope | dataviews:run |
| Asynchronous | No |
| MCP tool | execute_dataview |
| Portal permissions | view_dataviews, query_dataviews, view_dataview_rows |
| Paging | snapshot |
| Default order | plan order + unique key where the plan has one |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dataview_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | DataviewExecuteInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
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 |
410 | cursor_expired | 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 | invalid_cursor, 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 |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
columns | array of object | Required | |
next_cursor | string or null | Required | |
rows | array of array of any | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
DataviewExecuteInput
| Field | Type | Required | Description |
|---|---|---|---|
filter | any | Optional | A filter over the dataview's columns, as the dataview editor writes it. |
sort | array of DataviewSortInput | Optional |
DataviewSortInput
| Field | Type | Required | Description |
|---|---|---|---|
column | string | Optional | |
direction | string | Optional | asc or desc. |