Replace Widgets on Dashboard

Reconcile the complete widget list by ID. Read view=editable or view=references first and include its revision. Preserve widgets with {id}; list exactly the…

Reconcile the complete widget list by ID. Read view=editable or view=references first and include its revision. Preserve widgets with {id}; list exactly the omitted widget IDs in delete_widget_ids to confirm deletion. A revision conflict requires a fresh read and reapplication of the intended edit.

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

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Body

application/json
revisionstringrequired

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

widgetsoneOf[]required

Provide the complete final list. Use { "id": "widget_id" } to preserve a widget without resending its definition.

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
delete_widget_idsstring[]

List exactly the existing widget IDs omitted from widgets. Omission alone never confirms deletion.

defaultsobject
Constraints:nullable
Show child attributes
dateoneOf
Constraints:object
One of 4 shapes:
valueintegerrequired
Constraints:min: 0
unitstringrequired
Allowed values:dayweekmonth
granularitystring
Allowed values:autodailyweeklymonthly
max_colsinteger
Constraints:format: int64min: 0

Response

application/json
200· Replace dashboard widgets response
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
idsstring[]required
revisionstringrequired
deleted_idsstring[]required
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.