POST
/
v1
/
dashboards
/
{dashboard_id}
/
panels
curl --request POST \
  --url https://api.rootly.com/v1/dashboards/%7Bdashboard_id%7D/panels \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/vnd.api+json'
{
  "data": {
    "id": "d40a9f37-ba62-42e3-a6a2-e57e072c0bcb",
    "type": "dashboard_panels",
    "attributes": {
      "dashboard_id": "eedb49db-761a-4f83-b143-512ccc9f1320",
      "name": "test",
      "params": {
        "display": "line_chart",
        "datasets": [
          {
            "collection": "incidents",
            "filter": [],
            "aggregate": {
              "operation": "count",
              "key": "results",
              "cumulative": false
            }
          }
        ]
      },
      "position": null,
      "created_at": "2025-03-13T11:59:55.946-07:00",
      "updated_at": "2025-03-13T11:59:55.946-07:00",
      "data": [
        {
          "name": "Incidents",
          "color": null,
          "data": {
            "2025-03-06": 0,
            "2025-03-07": 0,
            "2025-03-08": 0,
            "2025-03-09": 0,
            "2025-03-10": 0,
            "2025-03-11": 0,
            "2025-03-12": 0,
            "2025-03-13": 0
          }
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dashboard_id
string
required

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
dashboard panel created
data
object
required