Update DataLens report
datalens_reports_updateSave or publish a DataLens report by replacing its full data; confirm before overwriting because layout and settings may be dropped.
Instructions
Save a report; it LOSES the layout of its slide elements and some settings.
DataLens does not check a revision here: a save overwrites what was saved since you read it (measured).
Measured (2026-10-06): DataLens drops them on a save through the API, without a word,
though every value is sent. Ask the person before saving an existing report. Otherwise:
read it, change data, send it back whole.
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>",
"data": "<data>",
"mode": "<mode>",
"meta": "<meta>"
},
"name": "datalens_reports_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | What the report holds: its slides and its settings; it replaces the whole of it. Its schema is not listed here: read `ReportData` with schema_get(service="datalens", name="ReportData"), then the definitions it refers to. | |
| meta | Yes | Metadata of the entry; null for none. Required. | |
| mode | Yes | `save` keeps the report as a draft; `publish` shows it to all. | |
| rev_id | No | The revision of the report the change is made on. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| entry_id | Yes | Report id. | |
| annotation | No | A description of the report. |