v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
clickhouse

Saved Sql Queries Create

POST handler with superadmin-only field protection.

Strips superadmin-only fields from non-superadmin requests before delegating to OrganizationInjectionMixin.post() for org injection.

post/clickhouse/saved-sql-queries/

Headers

Authorizationstring required

JWT access token or Respan API key

Request body

namestring required
descriptionstring
querystring required
source'sql_editor' | 'dashboard_custom_chart'
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart
organizationinteger
projectstring nullable

Response

idstring required
namestring required
descriptionstring
querystring required
source'sql_editor' | 'dashboard_custom_chart'
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart
created_byinteger nullable required