Change a chart (JSON Merge Patch).
PATCH/api/v1/charts/{chart_id}analytics:write
A locked chart refuses changes until a save sets locked to false (409 locked). Omitted settings retain hidden source fields; newly selected sources require their own readers. A null saved query retains the stored source. A full response requires View Charts and projects source metadata by its independent readers; otherwise the response is a write receipt.
Version 2026-12-01. A full response needs view_charts and the permissions that read the saved query; otherwise the response is a write receipt. virtual_view_id is always a string.
| Scope | analytics:write |
| Asynchronous | No |
| MCP tool | update_chart |
| Portal permissions | edit_charts |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
chart_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | ChartPatchInput |
application/merge-patch+json | ChartPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json Chart or 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 |
409 | locked | application/problem+json Problem |
412 | precondition_failed | 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
Chart
| Field | Type | Required | Description |
|---|---|---|---|
chart_id | string | Required | |
chart_type | string | Required | The chart type as the builder names it (for example bar, line, pie). |
is_locked | boolean | Required | |
name | string | Required | |
settings | object or null | Required | The chart's settings (format chart_settings); null in list items. |
virtual_view_id | string or null | Required | The saved query the chart reads; null without its source readers. |
ChartPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
chart_id | string or null | Optional | |
chart_type | string or null | Optional | |
is_locked | boolean or null | Optional | |
name | string or null | Optional | |
settings | object or null | Optional | |
virtual_view_id | string or null | Optional |