Create DataLens report
datalens_reports_createCreate a DataLens report in a workbook from report data and metadata; note the API does not preserve slide element layout or some settings.
Instructions
Create a report in a workbook; the API keeps no layout of slide elements.
Measured (2026-10-06): a report made through the API loses the layout of the
elements of its slides and part of its settings, so a copy of a report read with
reports_get loses where its elements stood. Say so before making one. DataLens
refuses a report with no slide: data.slides holds at least one.
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": {
"data": "<data>",
"meta": "<meta>"
},
"name": "datalens_reports_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The report's key, in a folder. | |
| data | Yes | What the report holds: its slides and its settings; it replaces the whole of it. Its schema is not listed here: read `ReportData` with schema_get(service="datalens", name="ReportData"), then the definitions it refers to. | |
| meta | Yes | Metadata of the entry; null for none. Required. | |
| name | No | The report's name. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| annotation | No | A description of the report. | |
| workbook_id | No | The workbook to create the report in. | |
| include_permissions | No | Also say what the caller may do with the new report. |