Add Widgets to Dashboard

Append typed widget definitions. Supported definitions from an editable read can be copied; supplied widget IDs do not retain existing widgets. Include a rev…

Append typed widget definitions. Supported definitions from an editable read can be copied; supplied widget IDs do not retain existing widgets. Include a revision to reject an append after concurrent dashboard changes.

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

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Body

application/json
widgetsoneOf[]required
Show child attributes
One of 5 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
revisionstring

Reject the append if this revision no longer matches the dashboard.

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· Add dashboard widgets response
messagestringrequired

A simple string explaining the result of the operation.

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