Update Dashboard Widget

Edit one widget using a full supported definition or sparse metadata/layout/query patch and the dashboard revision. Query and arrays replace their complete p…

Edit one widget using a full supported definition or sparse metadata/layout/query patch and the dashboard revision. Query and arrays replace their complete previous values. Omitted fields remain unchanged. Unsupported widgets allow layout-only edits. Read again after a revision conflict.

patchhttps://statsigapi.net/console/v1/dashboards/{id}/widgets/{widgetId}

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

dashboard id

widgetIdstringrequired

widget id

Body

application/json
revisionstringrequired

Include the revision returned by an editable or references read. Read the dashboard again after a revision conflict.

widgetoneOfrequired
Constraints:oneOf (oneOf (object), object)object
Show child attributes
One of 7 shapes:
typestringrequired
Allowed values:text
titlestringrequired
contentstringrequired
widthinteger
Constraints:min: 0max: 12
heightinteger
Constraints:min: 0
idstring
descriptionstring
colorstring
Constraints:nullable
layoutobject
rowintegerrequired
Constraints:min: 0
columnintegerrequired
Constraints:min: 0max: 11
date_rangeobject
Constraints:nullable
start_dsstring
Constraints:nullable
end_dsstring
Constraints:nullable
start_offset_daysnumber
Constraints:nullable
end_offset_daysnumber
Constraints:nullable

Response

application/json
200· Updated widget identity and dashboard revision.
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
idstringrequired
revisionstringrequired
400· Invalid request. Please check the request input and try again.
statusintegerrequired
Allowed values:400
messagestringrequired
404· Not Found. The requested resource could not be found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?

For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.