Update DataLens QL chart
datalens_charts_ql_updateSave or publish a QL chart by replacing its full data; saves overwrite existing content without revision checks.
Instructions
Save a QL chart as given; the reply is what DataLens answers, as it came.
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_id": "<entry_id>",
"template": "<template>",
"mode": "<mode>",
"data": "<data>"
},
"name": "datalens_charts_ql_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | What the chart holds; it replaces the whole of it. | |
| mode | Yes | `save` keeps a draft; `publish` makes it the version shown. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| entry_id | Yes | Chart id. | |
| template | Yes | The template of the chart; the API takes only `ql` today. | |
| annotation | No | A description of the chart. |