---
type: api
title: Configure the Risk Engine Saved Object
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-configureriskenginesavedobject
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-configureriskenginesavedobject
products:
  - Kibana
---

# Configure the Risk Engine Saved Object

Authentication: required

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

## Paths

- `PATCH` `/api/risk_score/engine/saved_object/configure`
- `PATCH` `/s/{space_id}/api/risk_score/engine/saved_object/configure`

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

## Description

Configuring the Risk Engine Saved Object

## Request body

`application/json`

- `exclude_alert_statuses` (string[]) — optional
- `exclude_alert_tags` (string[]) — optional
- `range` (object) — optional
  - `end` (string) — optional
  - `start` (string) — optional

## Responses

#### `200`

Successful response

`application/json`

- `risk_engine_saved_object_configured` (boolean)
#### `400`

Task manager is unavailable

`application/json`

- `message` (string)
- `status_code` (integer · min: 400)
#### `default`

Unexpected error

`application/json`

- `errors` (object[])
  - `error` (string)
  - `seq` (integer)
- `risk_engine_saved_object_configured` (boolean)
## Code examples

#### Console

```console
PATCH kbn:/api/risk_score/engine/saved_object/configure
{}
```

#### curl

```curl
curl -X PATCH "${KIBANA_URL}/api/risk_score/engine/saved_object/configure" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "risk_engine_saved_object_configured": false
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "message": "string",
  "status_code": 0
}
```

#### default

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "error": "string",
      "seq": 0
    }
  ],
  "risk_engine_saved_object_configured": false
}
```

