Update DataLens dashboard
datalens_dashboards_updateUpdate a DataLens dashboard by modifying and returning its full data; choose save for draft or publish to make it visible, noting saves overwrite since last read.
Instructions
Save a dashboard as given: read it, change data, send it back whole.
DataLens does not check a revision here: a save overwrites what was saved since you read it (measured).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | `save` keeps the dashboard as a draft; `publish` shows it to all. | |
| entry | Yes | The dashboard to save: its `entryId`, `data`, `meta` and `revId`. Its schema is not listed here: read `DashboardUpdate` with schema_get(service="datalens", name="DashboardUpdate"), then the definitions it refers to. | |
| lock_token | No | The token of the lock held on the dashboard, when it is locked. |