Saved Sql Queries Create 2

POST handler with superadmin-only field protection.

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

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

idstringRequired

Request

This endpoint expects an object.
namestringRequired1-255 characters
querystringRequired>=1 character
descriptionstringOptional
plotting_configanyOptional
sourceenumOptional
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart

Response

idstringRead-only
namestring<=255 characters
querystring
projectstringRead-only
created_atdatetimeRead-only
updated_atdatetimeRead-only
created_byobject
descriptionstring
plotting_configany
sourceenum
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart