Skip to main content
PUT
/
console
/
v1
/
dashboards
/
{id}
/
widgets
Replace Widgets on Dashboard
curl --request PUT \
  --url https://statsigapi.net/console/v1/dashboards/{id}/widgets \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '
{
  "widgets": [
    {
      "type": "text",
      "title": "<string>",
      "content": "<string>"
    }
  ],
  "defaults": {
    "date": {
      "value": 1,
      "unit": "day"
    },
    "granularity": "auto"
  },
  "max_cols": 1
}
'
{
  "message": "Dashboard Widgets Replaced Successfully",
  "data": {
    "ids": [
      "widget_id"
    ]
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Path Parameters

id
string
required

id

Body

application/json
widgets
object[]
required
defaults
object
max_cols
integer<int64>
Required range: x > 0

Response

Replace dashboard widgets response

message
string
required

A simple string explaining the result of the operation.

data
object
required

A single result.