---
type: api
title: "Replace feature settings"
description: "Replaces the model assignments for every AI feature in the current space. Send the document returned by Get feature settings to round-trip parameters, including reasoning effort. Endpoint IDs are not checked for existence; a reasoning effort is checked only against endpoints that exist. [Required authorization] Route required privileges: manage_searchInferenceEndpoints."
url: https://www.elastic.co/elastic/docs-builder/docs/5113/api/kibana-serverless/operation/operation-put-model-management-feature-settings
resource: https://www.elastic.co/elastic/docs-builder/docs/5113/api/kibana-serverless/operation/operation-put-model-management-feature-settings
products:
  - Kibana
---

# Replace feature settings

Authentication: required

Availability: Preview

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

## Paths

- `PUT` `/api/model_management/feature_settings`
- `PUT` `/s/{space_id}/api/model_management/feature_settings`

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

Replaces the model assignments for every AI feature in the current space. Send the document returned by Get feature settings to round-trip parameters, including reasoning effort. Endpoint IDs are not checked for existence; a reasoning effort is checked only against endpoints that exist.

## Required privileges

- Privileges: `manage_searchInferenceEndpoints`

## Header parameters

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

## Request body

`application/json`

- `features` (object[] · max items: 30) — required
  The model assignments for each AI feature, up to 30 features. Each feature can appear once. A feature left out of a full replacement loses its saved assignment and returns to normal model selection. To learn how Kibana chooses models, refer to [Manage access to AI features](https://www.elastic.co/docs/explore-analyze/ai-features/manage-access-to-ai-assistant).
  - `endpoints` (object[] · min items: 0 · max items: 30) — required
    The inference endpoints the feature uses, in order of preference. The first endpoint that can be resolved is used by default; IDs that do not resolve are skipped. Up to 30 endpoints. An empty list saves an explicit choice of no endpoints.
    - `id` (string · min length: 1 · max length: 256) — required
      The inference endpoint ID, for example `.anthropic-claude-4.6-sonnet-chat_completion`. Up to 256 characters.
    - `parameters` (object) — optional
      Optional parameters for this endpoint. Saved endpoints do not inherit parameters from the feature’s recommended endpoints.
      - `reasoning` (object) — optional
        Reasoning options for models that support reasoning.
        - `effort` (enum) — optional
          How much reasoning the model does before it answers, from `none` (no reasoning) to `xhigh` (the most). Higher levels can give better answers but are slower and use more tokens. Supported levels depend on the model. When the endpoint lists the levels it supports, any other level is rejected with a 400 error; otherwise the level is saved without a check, so a successful save does not confirm that the model supports it. When omitted, no effort is saved for the endpoint.
          Values: `none`, `minimal`, `low`, `medium`, `high`, `xhigh`
  - `feature_id` (string · min length: 1 · max length: 256) — required
    The AI feature ID, for example `agent_builder`. Must be a registered feature or one already in the saved settings. Up to 256 characters.

## Responses

#### `200`

The feature settings that were saved.

`application/json`

- `features` (object[] · max items: 30)
  The model assignments for each AI feature, up to 30 features. Each feature can appear once. A feature left out of a full replacement loses its saved assignment and returns to normal model selection. To learn how Kibana chooses models, refer to [Manage access to AI features](https://www.elastic.co/docs/explore-analyze/ai-features/manage-access-to-ai-assistant).
  - `endpoints` (object[] · min items: 0 · max items: 30)
    The inference endpoints the feature uses, in order of preference. The first endpoint that can be resolved is used by default; IDs that do not resolve are skipped. Up to 30 endpoints. An empty list saves an explicit choice of no endpoints.
    - `id` (string · min length: 1 · max length: 256)
      The inference endpoint ID, for example `.anthropic-claude-4.6-sonnet-chat_completion`. Up to 256 characters.
    - `parameters` (object)
      Optional parameters for this endpoint. Saved endpoints do not inherit parameters from the feature’s recommended endpoints.
      - `reasoning` (object)
        Reasoning options for models that support reasoning.
        - `effort` (enum)
          How much reasoning the model does before it answers, from `none` (no reasoning) to `xhigh` (the most). Higher levels can give better answers but are slower and use more tokens. Supported levels depend on the model. When the endpoint lists the levels it supports, any other level is rejected with a 400 error; otherwise the level is saved without a check, so a successful save does not confirm that the model supports it. When omitted, no effort is saved for the endpoint.
          Values: `none`, `minimal`, `low`, `medium`, `high`, `xhigh`
  - `feature_id` (string · min length: 1 · max length: 256)
    The AI feature ID, for example `agent_builder`. Must be a registered feature or one already in the saved settings. Up to 256 characters.
#### `400`

The request has an unknown feature_id, the same feature or model listed twice, or a reasoning effort the model does not support.

`application/json`

#### `409`

The feature settings changed after this request read them. Get the feature settings again and retry.

`application/json`

## Code examples

#### Console

```console
PUT kbn://api/model_management/feature_settings
{
  "features": [
    {
      "feature_id": "agent_builder",
      "endpoints": [
        {
          "id": ".anthropic-claude-4.6-sonnet-chat_completion",
          "parameters": { "reasoning": { "effort": "low" } }
        }
      ]
    }
  ]
}
```

#### curl

```curl
curl \
  -X PUT "${KIBANA_URL}/api/model_management/feature_settings" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "features": [
      {
        "feature_id": "agent_builder",
        "endpoints": [
          {
            "id": ".anthropic-claude-4.6-sonnet-chat_completion",
            "parameters": { "reasoning": { "effort": "low" } }
          }
        ]
      }
    ]
  }'
```

## Response examples

#### Saved feature settings

`application/json`

```json
{
  "features": [
    {
      "endpoints": [
        {
          "id": ".anthropic-claude-4.6-sonnet-chat_completion",
          "parameters": {
            "reasoning": {
              "effort": "low"
            }
          }
        }
      ],
      "feature_id": "agent_builder"
    }
  ]
}
```

#### Unknown feature id

`application/json`

```json
{
  "attributes": {
    "errors": [
      "Unknown feature_id values: not_a_feature"
    ]
  },
  "error": "Bad Request",
  "message": "Invalid inference settings",
  "statusCode": 400
}
```

#### Settings changed by another request

`application/json`

```json
{
  "error": "Conflict",
  "message": "Saved object [inference-settings/default] conflict",
  "statusCode": 409
}
```

