Get DataLens saved SQL query
datalens_sqlqueries_getRetrieve a saved DataLens SQL query's text, connection, and parameters by ID, optionally including revision, favorite status, or permissions.
Instructions
One saved SQL query: its text, its connection and its parameters.
Experimental in the DataLens API and written from its document: not measured. An
organization whose SQL editor is off answers 403 SQL_EDITOR_NOT_ALLOWED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev_id | No | The revision to read; the current one when left out. | |
| sql_query_id | Yes | SQL query id. | |
| include_favorite | No | Also say whether it is a favourite. | |
| include_permissions | No | Also say what the caller may do with it. |