Update DataLens dataset
datalens_datasets_updateReplace a dataset's content to save changes. Validate first with datasets_validate, then re-read after saving to avoid stale revisions.
Instructions
Save a dataset as given: read it, change what it holds, send it back whole.
data.dataset replaces the content. Check a change first with datasets_validate.
Read the dataset again after every save: content of an older revision is refused.
The reply holds the content and the revisions; its id is null (measured).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The content to save (`dataset`) and how (`mode`: `save` or `publish`). Its schema is not listed here: read `DatasetUpdate` with schema_get(service="datalens", name="DatasetUpdate"), then the definitions it refers to. | |
| dataset_id | Yes | Dataset id. | |
| workbook_id | No | The workbook the dataset lies in. |