Delete asset criticality record

edit

Delete a single asset criticality record by ID field and ID value.

Request URL

edit

DELETE <kibana host>:<port>/api/asset_criticality

URL query parameters

edit
Name Type Description Required

id_field

String

The field that contains the entity ID. This must be either user.name or host.name.

Yes

id_value

String

The ID (host name or user name) of the entity specified in the id_field field.

Yes

Example requests

edit
DELETE /api/asset_criticality?id_field=host.name&id_value=my_host

Response code

edit
200
Indicates a successful call. Check the response body to see if the record was deleted.

Example responses

edit

Example 1

If the record was deleted.

{
  "deleted": true,
  "record": {
    "id_field": "host.name",
    "id_value": "my_host",
    "criticality_level": "medium_impact",
    "@timestamp": "2024-08-05T09:42:11.240Z"
  }
}

Example 2

If the record was not found and could not be deleted.

{
  "deleted": false
}

For the Fleet APIs, see the Fleet API Documentation.