Create a dashboard section

Creates a new section on a specific dashboard.

POST https://telemetry.betterstack.com/api/v2/dashboards/{dashboard_id}/sections

URL parameters

dashboard_id
required integer

Headers

Authorization
required string

Body parameters

name
required string
y
integer
collapsed
false boolean
201

Response body

{
  "data": {
    "id": "891",
    "type": "section",
    "attributes": {
      "name": "New Section",
      "y": 10,
      "collapsed": false
    }
  }
}

If the new section's position overlaps with existing items, the layout will be automatically consolidated after a short delay.

Example Request

cURL
curl --request POST \
  --url https://telemetry.betterstack.com/api/v2/dashboards/1234/sections \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "name": "New Section",
    "y": 10
  }'