---
title: "Link entities"
method: POST
path: "/api/security/entity_store/resolution/link"
tags: ["Security entity store"]
---

# Link entities

`POST /api/security/entity_store/resolution/link`

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

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

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

Link one or more entities to a target entity, creating a 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.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `entity_ids` string[], required — Entity identifiers to link to the target entity. Minimum 1, maximum 1000.
  - `target_id` string, required — The entity identifier to resolve the linked entities to.

## Response `200`

Indicates a successful response.

## Other responses

- `400` — Bad 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/versions/531c9e2a7d23/schema)
