---
title: "Upsert an asset criticality record"
method: POST
path: "/api/asset_criticality"
tags: ["Security Entity Analytics API"]
deprecated: true
---

# Upsert an asset criticality record

`POST /api/asset_criticality`

> **Deprecated.**

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/asset_criticality</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

**Deprecated in 9.4.0.** Use the Entity Store APIs to assign asset criticality to an entity.

Create or update an asset criticality record for a specific entity.

If a record already exists for the specified entity, that record is overwritten with the specified value. If a record doesn't exist for the specified entity, a new record is created.

## Request body

- object
  - `id_field` 'host.name' | 'user.name' | 'service.name' | 'entity.id', required
  - `id_value` string, required — The ID value of the asset.
  - `criticality_level` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
  - `refresh` 'wait_for' — If 'wait_for' the request will wait for the index refresh.

## Response `200`

Successful response

- SecurityEntityAnalyticsAPIAssetCriticalityRecord
  - `id_field` 'host.name' | 'user.name' | 'service.name' | 'entity.id', required
  - `id_value` string, required — The ID value of the asset.
  - `criticality_level` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
  - `asset` object, required
    - `criticality` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact' — The criticality level of the asset.
  - `entity` object
    - `asset` object
      - `criticality` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
    - `id` string, required
  - `host` object
    - `asset` object
      - `criticality` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
    - `name` string, required
  - `service` object
    - `asset` object
      - `criticality` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
    - `name` string, required
  - `user` object
    - `asset` object
      - `criticality` 'low_impact' | 'medium_impact' | 'high_impact' | 'extreme_impact', required — The criticality level of the asset.
    - `name` string, required
  - `@timestamp` string, date-time, required — The time the record was created or updated.

## Other responses

- `400` — Invalid request

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/531c9e2a7d23/schema)
