dashboards_insert
Insert or update dashboards in Cortex XSIAM using dashboard and widget data from the Get dashboards API. Create custom layouts, widgets, and set dashboard status.
Instructions
Insert or update dashboards
Add or update the dashboards retrieved by the Get dashboards API.
You must have Instance Administrator permissions to run this endpoint.
[POST /public_api/v1/dashboards/insert] · Dashboards
Example request body:
{
"request_data": {
"dashboards_data": [
{
"name": "temp",
"description": null,
"status": "ENABLED",
"layout": [
{
"id": "row-9847",
"data": [
{
"key": "incidentsBySeverity",
"data": {
"type": "Pie",
"width": 25,
"height": 451
}
},
{
"key": "xql_17083686713115",
"data": {
"type": "Custom XQL",
"width": 25,
"height": 451,
"phrase": "dataset = xdr_data ",
"time_frame": {
"relativeTime": 86400000
},
"viewOptions": {
"type": "table",
"commands": []
}
}
},
{
"key": "incidentsByAssignment",
"data": {
"type": "Bar",
"width": 25,
"height": 451
}
},
{
"key": "incidentsHistory",
"data": {
"type": "Timeline",
"width": 25,
"height": 451,
"time_frame": {
"relativeTime": 86400000
},
"alerts_or_incidents": "incident"
}
}
]
},
{
"id": "row-2618",
"data": [
{
"key": "topIncidentsByAlertSeverity",
"data": {
"type": "Table",
"width": 50,
"height": 408
}
},
{
"key": "hostsBySeverity",
"data": {
"type": "Table",
"width": 50,
"height": 408
}
}
]
},
{
"id": "row-776",
"data": [
{
"key": "incidentsByAssigneeOverTime",
"data": {
"type": "Timeline",
"width": 100,
"height": 250,
"time_frame": {
"relativeTime": 2592000000
}
}
}
]
}
],
"default_dashboard_id": 1,
"global_id": "aaebad58d7f84452abe650cf34b80d64",
"metadata": {
"params": []
}
}
],
"widgets_data": [
{
"widget_key": "xql_17083686713115",
"title": "papi_widget_test2",
"creation_time": 1713089132145,
"description": null,
"data": {
"phrase": "dataset = xdr_data ",
"time_frame": {
"relativeTime": 86400000
},
"viewOptions": {
"type": "table",
"commands": []
}
},
"support_time_range": true,
"additional_info": {
"query_tables": [
"xdr_data"
],
"query_uses_library": false
},
"creator_mail": "user@company.com"
}
]
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_data | No |