---
type: api
title: Enable an entity resolution rule
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-put-security-entity-store-resolution-rules-id-enable
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-put-security-entity-store-resolution-rules-id-enable
products:
  - Kibana
---

# Enable an entity resolution rule

Authentication: required

Availability: Generally available since 9.5

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

## Paths

- `PUT` `/api/security/entity_store/resolution/rules/{id}/enable`
- `PUT` `/s/{space_id}/api/security/entity_store/resolution/rules/{id}/enable`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `id` (string · max length: 100) — required
  The stable identifier of the entity resolution rule.

## Description

Enable a managed entity resolution rule in this space.

## Required authorization

- Privileges: `securitySolution` and `securitySolution-entity-analytics-manage`

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Responses

#### `200`

Updated entity resolution rule.

`application/json`

#### `404`

Unknown entity resolution rule.

`application/json`

## Code examples

#### Console

```console
PUT kbn:/api/security/entity_store/resolution/rules/ID/enable
```

#### curl

```curl
curl -X PUT "${KIBANA_URL}/api/security/entity_store/resolution/rules/${ID}/enable" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Rule enabled

`application/json`

The related user alias resolution rule was enabled in the current space.

```json
{
  "description": "Related user alias resolution across identity providers",
  "enabled": true,
  "id": "related_user_alias_resolution",
  "kind": "related_user_alias_resolution",
  "managed": true
}
```

#### Unknown rule

`application/json`

The requested entity resolution rule does not exist.

```json
{
  "error": "Not Found",
  "message": "Saved object [entity-resolution-rule/unknown] not found",
  "statusCode": 404
}
```

