Bulk upsert asset criticality records
Bulk upsert up to 1000 asset criticality records.
If asset criticality records already exist for the specified entities, those records are overwritten with the specified values. If asset criticality records don't exist for the specified entities, new records are created.
POST /api/asset_criticality/bulk
curl \
-X POST https://localhost:5601/api/asset_criticality/bulk \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request example
{
"records": [
{
"id_field": "host.name",
"id_value": "host-1",
"criticality_level": "low_impact"
},
{
"id_field": "host.name",
"id_value": "host-2",
"criticality_level": "medium_impact"
}
]
}
Response examples (200)
{
"stats": {
"total": 2,
"failed": 1,
"successful": 1
},
"errors": [
{
"index": 0,
"message": "Invalid ID field"
}
]
}