Update DataLens QL chart
datalens_charts_ql_updateSave a DataLens QL chart by ID, replacing all chart data. Choose save for a draft or publish to make it the displayed version; overwrites changes since read.
Instructions
Save a QL chart as given; the reply is what DataLens answers, as it came.
DataLens does not check a revision here: a save overwrites what was saved since you read it (measured).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | What the chart holds; it replaces the whole of it. | |
| mode | Yes | `save` keeps a draft; `publish` makes it the version shown. | |
| entry_id | Yes | Chart id. | |
| template | Yes | The template of the chart; the API takes only `ql` today. | |
| annotation | No | A description of the chart. |