Update widget

View as Markdown

Partial update. Changing sql revalidates it, re-derives the board’s filter tokens, and invalidates any cached result for this widget.

Path parameters

org_idstringRequired
Organization ID
workspace_idstringRequired
Workspace ID
board_idstringRequiredformat: "uuid"
widget_idstringRequiredformat: "uuid"

Headers

X-API-KeystringRequired
Your workspace API key.

Request

This endpoint expects an object.
namestring or nullOptional1-60 characters
New display name
sqlstring or nullOptional>=1 character

Replacement SQL; same token syntax as on create

viz_typeenum or nullOptional
New renderer
viz_configobject or nullOptional
Replacement renderer options

Response

Successful Response
idstringformat: "uuid"
Widget identifier
board_idstringformat: "uuid"
Board this widget belongs to
namestring
Widget display name
sqlstring
The widget's stored SQL, filter tokens unexpanded
viz_typestring
How the result is rendered
viz_configobject

Renderer options for viz_type

created_byobject
Actor that created the widget
created_atdatetime
Creation time, UTC, RFC 3339
updated_byobject
Actor that last changed the widget
updated_atdatetime
Last change time, UTC, RFC 3339

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error