Run a saved chart without exposing its datasource.
POST/api/v1/charts/{chart_id}/executeanalytics:read
Uses the saved source, columns and aggregation with current source and row access. Accepts only runtime inputs and result filters.
| Scope | analytics:read |
| Asynchronous | No |
| MCP tool | execute_chart |
| Portal permissions | execute_charts, execute_chart_sources |
| Paging | snapshot |
| Default order | plan order + unique key where the plan has one |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
chart_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 | ChartExecuteInput |
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
ChartExecuteInput
| Field | Type | Required | Description |
|---|---|---|---|
context | any | Optional | Runtime input values as a JSON object. |
document_id | string or null | Optional | Run for this visible document when supplied. |
post_filters | any | Optional | A result FilterTree. Sources, columns and aggregation remain the saved chart's. |