Create DataLens connection
datalens_connections_createCreate a DataLens connection and return its ID; provide workbook_id or dir_path to specify where it belongs.
Instructions
Create a connection and return its id.
Give workbook_id (or dir_path) for where it lies. The password or the token you
give is stored by DataLens and never returned by connections_get. A connection to
Google Sheets (gsheets) cannot be created here: the API answers that the type is not
editable; it is made in the DataLens interface and then read like any other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | The new connection; ``type`` says which kind it is and selects its schema. Its schema is not listed here: read `ConnectionCreate` with schema_get(service="datalens", name="ConnectionCreate"), then the definitions it refers to. |