Update DataLens wizard chart
datalens_charts_wizard_updateSave a DataLens wizard chart by replacing its full data, either keeping a draft or publishing the version shown. Use it after reading a chart to apply changes; saves overwrite without revision checks.
Instructions
Save a chart of the wizard as given: read it, change it, send it back whole.
DataLens does not check a revision here: a save overwrites what was saved since you read it (measured).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chart_id": "<chart_id>",
"mode": "<mode>",
"data": "<data>"
},
"name": "datalens_charts_wizard_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | What the chart holds; it replaces the whole of it. Its schema is not listed here: read `WizardChartData` with schema_get(service="datalens", name="WizardChartData"), then the definitions it refers to. | |
| mode | Yes | `save` keeps a draft; `publish` makes it the version shown. | |
| rev_id | No | The revision the change is made on; DataLens does not check it (measured). | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| chart_id | Yes | Chart id. | |
| annotation | No | A description of the chart. |