---
type: api
title: Unlink entities
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-post-security-entity-store-resolution-unlink
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-post-security-entity-store-resolution-unlink
products:
  - Kibana
---

# Unlink entities

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/security/entity_store/resolution/unlink`
- `POST` `/s/{space_id}/api/security/entity_store/resolution/unlink`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#basicauth)

## Description

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

Remove one or more entities from their resolution group. Changes become visible on subsequent reads after the next index refresh (typically <1s).<br/><br/>[Required authorization] Route required privileges: securitySolution AND securitySolution-entity-analytics.

## Request Body

`application/json`

- `entity_ids` ([] string · min: 1 · max: 1000) — required
  Entity identifiers to unlink from their resolution group. Minimum 1, maximum 1000.

## Responses

#### `200`

Indicates a successful response.

#### `400`

Bad request.

## Code Examples

#### Console

```console
POST kbn://api/security/entity_store/resolution/unlink
{
  "entity_ids": ["user:jdoe@example.com"]
}
```

#### curl

```curl
curl -X POST -H "kbn-xsrf: true" -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"entity_ids":["user:jdoe@example.com"]}' \
  "${KIBANA_URL}/api/security/entity_store/resolution/unlink"
```

## Response Examples

#### Entities unlinked

The entities were successfully removed from their resolution group.

```json
{
  "entity_type": "user",
  "skipped": [],
  "unlinked": [
    "user:jdoe@example.com",
    "user:j.doe@example.com"
  ]
}
```

#### Mixed entity types

All entities in a resolution group must be of the same type.

```json
{
  "error": "Bad Request",
  "message": "All entities must be of the same type. Found types: [user, host]",
  "statusCode": 400
}
```

#### Entities not found

One or more of the specified entity identifiers were not found.

```json
{
  "error": "Bad Request",
  "message": "Entities not found: [user:nonexistent@example.com]",
  "statusCode": 400
}
```

