widgets_insert
Insert or update widgets in Cortex XSIAM by sending widget data retrieved from the Get widgets API. Directly manage dashboard widgets.
Instructions
Insert or update widgets
Update or add the widgets retrieved by the Get widgets API.
You must have Instance Administrator permissions to run this endpoint.
[POST /public_api/v1/widgets/insert] · Widgets
Example request body:
{
"request_data": [
{
"widgets_data": [
{
"widget_key": "xql_1646052681403",
"title": "Widget A",
"creation_time": 1653303166334,
"description": null,
"data": {
"phrase": "cold_dataset = endpoints",
"time_frame": {
"relativeTime": 86400000
},
"viewOptions": {
"type": "table",
"commands": []
}
},
"support_time_range": true,
"additional_info": {
"query_tables": [
"endpoints"
],
"query_uses_library": false
},
"creator_mail": "user@company.com"
}
]
},
{
"widgets_data": [
{
"widget_key": "xql_1346826725701",
"title": "Widget B",
"creation_time": 1653302483610,
"description": null,
"data": {
"phrase": "dataset = endpoints ",
"time_frame": {
"relativeTime": 86400000
},
"viewOptions": {
"type": "table",
"commands": []
},
"gridRawStorageInfo": {
"sort": null,
"coldefs": {},
"rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
"columnWidth": null
}
},
"support_time_range": true,
"additional_info": {
"query_tables": [
"endpoints"
],
"query_uses_library": false
},
"creator_mail": "user@company.com"
}
]
}
]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_data | No |