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.
post
https://statsigapi.net/console/v1/dashboards/{id}/widgetsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsonwidgetsoneOf[]requiredShow child attributes
One of 5 shapes:
typestringrequiredAllowed values:
texttitlestringrequiredcontentstringrequiredwidthintegerConstraints:
min: 0max: 12heightintegerConstraints:
min: 0idstringdescriptionstringcolorstringConstraints:
nullablelayoutobjectrowintegerrequiredConstraints:
min: 0columnintegerrequiredConstraints:
min: 0max: 11date_rangeobjectConstraints:
nullablestart_dsstringConstraints:
nullableend_dsstringConstraints:
nullablestart_offset_daysnumberConstraints:
nullableend_offset_daysnumberConstraints:
nullablerevisionstringReject the append if this revision no longer matches the dashboard.
defaultsobjectConstraints:
nullableShow child attributes
dateoneOfConstraints:
objectOne of 4 shapes:
valueintegerrequiredConstraints:
min: 0unitstringrequiredAllowed values:
dayweekmonthgranularitystringAllowed values:
autodailyweeklymonthlymax_colsintegerConstraints:
format: int64min: 0Response
application/json200· Add dashboard widgets response
messagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idsstring[]requiredrevisionstringrequired400· Invalid request. Please check the request input and try again.
statusintegerrequiredAllowed values:
400messagestringrequired404· Not Found. The requested resource could not be found.
statusintegerrequiredAllowed values:
404messagestringrequiredWas 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.