Run a query definition that is not saved (the query builder's Test).
Runs the definition sent (format query_builder, body {json_logic, builder_config, context}) as the caller, optionally on a foreign data connection, and returns an execution table; nothing is saved. A definition the engine cannot run is 422 carrying the engine's message. Needs Test Virtual Views, as the Portal's Test button does.
| |
|---|
| Scope | analytics:read |
| Asynchronous | No |
| MCP tool | execute_virtual_views |
| Portal permissions | test_virtual_views |
| Paging | snapshot |
| Default order | plan order + unique key where the plan has one |
Parameters
| Name | In | Type | Required | Description |
|---|
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
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
| Field | Type | Required | Description |
|---|
context | any | Optional | Values for the inputs the query asks for, keyed by input name, as a JSON object. |
definition | object | Required | The query to run, as a saved view's definition: format query_builder, body {json_logic, builder_config, context}. Nothing is saved. |
foreign_data_connection_id | string or null | Optional | Run the query on this foreign data connection instead of the Docwize database. |