Bulk Upsert Asset Criticality Records
Bulk upsert up to 1000 asset criticality records, creating or updating them as needed.
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"
}
]
}