Update DataLens editor chart
datalens_charts_editor_updateSave or publish a DataLens Editor chart to the server, keeping a draft or making it the shown version. Note: saving overwrites changes made since you last read the chart.
Instructions
Save a chart of the editor as given.
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": {
"entry": "<entry>",
"mode": "<mode>"
},
"name": "datalens_charts_editor_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | `save` keeps a draft; `publish` makes it the version shown. | |
| entry | Yes | The chart to save: its `entryId`, its kind (`type`) and its code. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). |