Creates a new dashboard panel from provided data
curl --request POST \
--url https://api.rootly.com/v1/dashboards/{dashboard_id}/panels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "dashboard_panels",
"attributes": {
"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
}
}
]
},
"name": "<string>",
"position": {
"x": 123,
"y": 123,
"w": 123,
"h": 123
}
}
}
}
'{
"data": {
"id": "eee1513e-9931-4f90-b9c7-d72f19a62cee",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "0e9fcf0b-a13d-4219-bb56-58a4ba9744b2",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2026-01-06T11:18:13.982-08:00",
"updated_at": "2026-01-06T11:18:13.982-08:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-12-30": 0,
"2025-12-31": 0,
"2026-01-01": 0,
"2026-01-02": 0,
"2026-01-03": 0,
"2026-01-04": 0,
"2026-01-05": 0,
"2026-01-06": 0
}
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
dashboard panel created
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/dashboards/{dashboard_id}/panels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "dashboard_panels",
"attributes": {
"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
}
}
]
},
"name": "<string>",
"position": {
"x": 123,
"y": 123,
"w": 123,
"h": 123
}
}
}
}
'{
"data": {
"id": "eee1513e-9931-4f90-b9c7-d72f19a62cee",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "0e9fcf0b-a13d-4219-bb56-58a4ba9744b2",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2026-01-06T11:18:13.982-08:00",
"updated_at": "2026-01-06T11:18:13.982-08:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-12-30": 0,
"2025-12-31": 0,
"2026-01-01": 0,
"2026-01-02": 0,
"2026-01-03": 0,
"2026-01-04": 0,
"2026-01-05": 0,
"2026-01-06": 0
}
}
]
}
}
}