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": "62f8fa46-1184-474e-b47b-6875fe5f5bc0",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "b3a4eeee-3111-4e0f-852d-d3f1a9c30fa5",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-11-26T20:52:15.881-08:00",
"updated_at": "2025-11-26T20:52:15.881-08:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-11-19": 0,
"2025-11-20": 0,
"2025-11-21": 0,
"2025-11-22": 0,
"2025-11-23": 0,
"2025-11-24": 0,
"2025-11-25": 0,
"2025-11-26": 0
}
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
dashboard_panels Show child attributes
Show child attributes
line_chart, line_stepped_chart, column_chart, stacked_column_chart, monitoring_chart, pie_chart, table, aggregate_value Show child attributes
alerts, incidents, incident_post_mortems, incident_action_items, users Show child attributes
and, or Show child attributes
and, or =, !=, >=, <=, exists, not_exists, contains, not_contains, assigned, unassigned The name of the dashboard_panel
dashboard panel created
Show child attributes
Unique ID of the dashboard_panel
dashboard_panels Show child attributes
Show child attributes
line_chart, line_stepped_chart, column_chart, stacked_column_chart, monitoring_chart, pie_chart, table, aggregate_value Show child attributes
alerts, incidents, incident_post_mortems, incident_action_items, users Show child attributes
and, or Show child attributes
and, or =, !=, >=, <=, exists, not_exists, contains, not_contains, assigned, unassigned The panel dashboard
The name of the dashboard_panel
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": "62f8fa46-1184-474e-b47b-6875fe5f5bc0",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "b3a4eeee-3111-4e0f-852d-d3f1a9c30fa5",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-11-26T20:52:15.881-08:00",
"updated_at": "2025-11-26T20:52:15.881-08:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-11-19": 0,
"2025-11-20": 0,
"2025-11-21": 0,
"2025-11-22": 0,
"2025-11-23": 0,
"2025-11-24": 0,
"2025-11-25": 0,
"2025-11-26": 0
}
}
]
}
}
}