---
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/4493/api/doc/kibana/v9/operation/operation-put-security-entity-store-resolution-rules-id-enable
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-put-security-entity-store-resolution-rules-id-enable
products:
  - Kibana
---

# Enable an entity resolution rule

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

- `id` (string · max length: 100) — required
  The stable identifier of the entity resolution rule.

## Description

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

Enable a managed entity resolution rule in this space.

## Required authorization

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

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## 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

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

```json
{
  "enabled": true,
  "id": "related_user_alias_resolution",
  "kind": "related_user_alias_resolution",
  "managed": true
}
```

#### Unknown rule

The requested entity resolution rule does not exist.

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

