Saved Sql Queries Update

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

Authentication

AuthorizationBearer
JWT access token or Respan API key

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
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