Create DataLens report
datalens_reports_createCreate a DataLens report in a workbook from slides and settings. Note that API-created reports drop slide layouts and some settings, so copied reports lose element positions.
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.
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. | |
| 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. |