Create DataLens QL chart
datalens_charts_ql_createCreate a DataLens QL chart from a template and data payload, optionally in a workbook, and return the API response. Use dry runs to preview the write request first.
Instructions
Create a QL chart; the reply is what DataLens answers, as it came.
The specification describes neither the content of a QL chart nor the reply.
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": {
"template": "<template>",
"data": "<data>"
},
"name": "datalens_charts_ql_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The entry's key, in a folder. | |
| data | Yes | What the chart holds: its query and how it is shown. | |
| name | No | The chart's name. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| template | Yes | The template of the chart; the API takes only `ql` today. | |
| annotation | No | A description of the chart. | |
| workbook_id | No | The workbook to create it in. |