MCP
chart:update
Updates a chart.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
chartId | string | yes | The chart to patch. |
chartType | string or null | no | The new chart form, or omitted to leave it unchanged. Defaults to null. |
options | object or null | no | Replaces the chart's options wholesale, or omitted to leave them unchanged. Defaults to null. |
Returns
| Name | Type | Required | Description |
|---|---|---|---|
chartId | string | yes | — |
chartType | string | yes | The EFFECTIVE, post-patch chart form, the patch's own value if it supplied one, else the chart's unchanged existing type. |
Schema
Request payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Payload",
"type": "object",
"properties": {
"chartId": {
"description": "The chart to patch.",
"type": "string"
},
"chartType": {
"description": "The new chart form, or omitted to leave it unchanged.",
"type": [
"string",
"null"
],
"default": null
},
"options": {
"description": "Replaces the chart's options wholesale, or omitted to leave them unchanged.",
"type": [
"object",
"null"
],
"additionalProperties": true,
"default": null
}
},
"required": [
"chartId"
]
}Response payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Output",
"type": "object",
"properties": {
"chartId": {
"type": "string"
},
"chartType": {
"description": "The EFFECTIVE, post-patch chart form, the patch's own value if it supplied one, else the chart's unchanged existing type.",
"type": "string"
}
},
"required": [
"chartId",
"chartType"
]
}