Update DataLens dashboard
datalens_dashboards_updateSave or publish a DataLens dashboard by sending its full updated definition with entryId, data, meta, and revId; choose draft or public mode. Saving overwrites changes made since it was 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).
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_dashboards_update"
}
}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. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| lock_token | No | The token of the lock held on the dashboard, when it is locked. |