PUT
/
v1
/
dashboard_panels
/
{id}
curl --request PUT \
  --url https://api.rootly.com/v1/dashboard_panels/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "dashboard_panels",
    "attributes": {
      "name": "<string>",
      "params": {
        "display": "line_chart",
        "description": "<string>",
        "table_fields": [
          "<string>"
        ],
        "legend": {
          "groups": "all"
        },
        "datalabels": {
          "enabled": true
        },
        "datasets": [
          {
            "name": "<string>",
            "collection": "alerts",
            "filter": [
              {
                "operation": "and",
                "rules": [
                  {
                    "operation": "and",
                    "condition": "=",
                    "key": "<string>",
                    "value": "<string>"
                  }
                ]
              }
            ],
            "group_by": "<string>",
            "aggregate": {
              "operation": "count",
              "key": "<string>",
              "cumulative": true
            }
          }
        ]
      },
      "position": {
        "x": 123,
        "y": 123,
        "w": 123,
        "h": 123
      }
    }
  }
}'
{
  "data": {
    "id": "eb34b1a8-16f8-4e1f-9627-7defe6e63182",
    "type": "dashboard_panels",
    "attributes": {
      "dashboard_id": "570b2546-7553-4c63-aff9-8f56e64cca13",
      "name": "test update",
      "params": {
        "display": "line_chart",
        "datasets": [
          {
            "collection": "incidents",
            "filter": [],
            "aggregate": {
              "operation": "count",
              "key": "results",
              "cumulative": false
            }
          }
        ]
      },
      "position": null,
      "created_at": "2025-03-20T17:48:28.922-07:00",
      "updated_at": "2025-03-20T17:48:30.133-07:00",
      "data": [
        {
          "name": "Incidents",
          "color": null,
          "data": {
            "2025-03-13": 0,
            "2025-03-14": 0,
            "2025-03-15": 0,
            "2025-03-16": 0,
            "2025-03-17": 0,
            "2025-03-18": 0,
            "2025-03-19": 0,
            "2025-03-20": 0
          }
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200 - application/vnd.api+json
dashboard panel updated
data
object
required