Update DataLens report
datalens_reports_updateSave or publish DataLens report data, but ask before overwriting: the API drops slide layout and some settings and ignores revisions.
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.
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. | |
| entry_id | Yes | Report id. | |
| annotation | No | A description of the report. |