Update a specific dashboard panel by 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": "97fe1444-266a-4822-801e-2a7ec6e87503",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "1c8d2a5f-3737-4ed9-85b7-7214a7874a62",
"name": "test update",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-08-04T16:45:35.446-07:00",
"updated_at": "2025-08-04T16:45:36.676-07:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-07-28": 0,
"2025-07-29": 0,
"2025-07-30": 0,
"2025-07-31": 0,
"2025-08-01": 0,
"2025-08-02": 0,
"2025-08-03": 0,
"2025-08-04": 0
}
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
dashboard panel updated
The response is of type object
.
Was this page helpful?
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": "97fe1444-266a-4822-801e-2a7ec6e87503",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "1c8d2a5f-3737-4ed9-85b7-7214a7874a62",
"name": "test update",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-08-04T16:45:35.446-07:00",
"updated_at": "2025-08-04T16:45:36.676-07:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-07-28": 0,
"2025-07-29": 0,
"2025-07-30": 0,
"2025-07-31": 0,
"2025-08-01": 0,
"2025-08-02": 0,
"2025-08-03": 0,
"2025-08-04": 0
}
}
]
}
}
}