Saved Sql Queries Partial Update

PATCH handler with superadmin lock and field protection.

Checks:

  1. Object lock (is_managed=True -> non-superadmins can’t modify)
  2. Field protection (non-superadmins can’t modify specific fields)

Authentication

AuthorizationBearer
JWT access token or Respan API key

Request

This endpoint expects an object.
namestringOptional1-255 characters
descriptionstringOptional
querystringOptional>=1 character
plotting_configanyOptional
sourceenumOptional
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart
organizationintegerOptional
projectstring or nullOptional>=1 character

Response

idstringRead-only
namestring<=255 characters
querystring
created_byinteger or nullRead-only
descriptionstring
plotting_configany
sourceenum
  • sql_editor - SQL editor
  • dashboard_custom_chart - Dashboard custom chart