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": {
"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": "a164b7cb-540c-4114-8fde-377dee0574cf",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "d8051db5-7bb3-42e1-bc5f-ce3431e9f2d7",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-07-25T16:53:26.900-07:00",
"updated_at": "2025-07-25T16:53:26.900-07:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-07-18": 0,
"2025-07-19": 0,
"2025-07-20": 0,
"2025-07-21": 0,
"2025-07-22": 0,
"2025-07-23": 0,
"2025-07-24": 0,
"2025-07-25": 0
}
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
dashboard panel created
The response is of type object
.
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": {
"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": "a164b7cb-540c-4114-8fde-377dee0574cf",
"type": "dashboard_panels",
"attributes": {
"dashboard_id": "d8051db5-7bb3-42e1-bc5f-ce3431e9f2d7",
"name": "test",
"params": {
"display": "line_chart",
"datasets": [
{
"collection": "incidents",
"filter": [],
"aggregate": {
"operation": "count",
"key": "results",
"cumulative": false
}
}
]
},
"position": null,
"created_at": "2025-07-25T16:53:26.900-07:00",
"updated_at": "2025-07-25T16:53:26.900-07:00",
"data": [
{
"name": "Incidents",
"color": null,
"data": {
"2025-07-18": 0,
"2025-07-19": 0,
"2025-07-20": 0,
"2025-07-21": 0,
"2025-07-22": 0,
"2025-07-23": 0,
"2025-07-24": 0,
"2025-07-25": 0
}
}
]
}
}
}