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

# Disable an entity resolution rule

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

## Paths

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

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

Disable a managed entity resolution rule in this space.

## Required authorization

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

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## 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/disable
```

#### curl

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

## Response examples

#### Rule disabled

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

```json
{
  "description": "Related user alias resolution across identity providers",
  "enabled": false,
  "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
}
```

