---
title: "PUT /ai/summary-preference"
method: PUT
path: "/ai/summary-preference"
tags: ["AI Provider Status"]
---

# PUT /ai/summary-preference

`PUT /ai/summary-preference`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/summary-preference`
- Auth: HTTP bearer

## Request body

- UpdateAiSummaryPreferenceRequest: Replace the instance-wide defaults inherited by every AI summary.
  - `model` string, nullable
  - `provider_id` string, nullable
  - `thinking_level` string, nullable

## Response `200`

Updated summary routing defaults

- AiProviderStatusResponse: Current API-gateway availability for this instance. The `configured` field drives the UI onboarding state: when `false` the UI must show _exactly what is missing_ (`reason`) and _where to fix it_ (`setup_path`), not hide the feature.
  - `available_providers` AvailableAiProviderDto[], required: Gateway providers available to API-backed chat and summaries. Credential source is descriptive metadata only and never contains secret values.
    - `auth_source` string, required: `configured_key` for an encrypted gateway key.
    - `default_model_id` string, nullable
    - `default_permission_mode_id` string, nullable
    - `id` string, required
    - `model_discovery_error` string, nullable
    - `model_discovery_status` string, required: `ready` when the model list was loaded, `unavailable` when the provider can still run with its own default but live discovery failed.
    - `models` AiModelOptionDto[], required
      - `default_thinking_option_id` string, nullable
      - `id` string, required
      - `name` string, required
      - `thinking_options` AiSelectOptionDto[], required
        - `description` string, nullable
        - `id` string, required
        - `name` string, required
      - `tool_thinking_options` AiSelectOptionDto[], nullable: Model-specific reasoning options valid while project-chat function tools are attached. Omitted when the normal options also apply.
        - `description` string, nullable
        - `id` string, required
        - `name` string, required
    - `name` string, required
    - `permission_modes` AiSelectOptionDto[], required
      - `description` string, nullable
      - `id` string, required
      - `name` string, required
  - `configured` boolean, required: Whether the active provider is ready to serve requests.
  - `gateway_available` boolean, required: Whether at least one active BYOK provider key exists.
  - `interactive_bridge_status` string, nullable: Health of normalized mid-turn user interactions, or `null` when the active adapter does not advertise them. Kept for API compatibility.
  - `reason` string, nullable: Human-readable explanation of why `configured` is `false`.
  - `setup_path` string, nullable: Console path the operator should visit to fix the missing configuration.
  - `summary_preference` AiSummaryPreferenceDto, required: Instance-wide defaults inherited by all server-authored AI summaries.
    - `model` string, nullable: `null` uses the selected provider's default model.
    - `provider_id` string, nullable: Normalized gateway route (`gateway_key:{id}`). `null` inherits the active gateway key.
    - `thinking_level` string, nullable: `null` uses the selected model's default reasoning depth.
  - `supports_interactive_tools` boolean, required: Whether the active adapter's normalized realtime contract exposes tool events. Kept under the legacy field name for API compatibility.

## Other responses

- `400`: Unsupported provider, model, or thinking level
- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-09-09** `961c884b4940`: 1 breaking, 2 warning
  - removed the required property `active_provider_type` from the response with the `200` status
  - removed the optional property `agent_cli_provider_id` from the response with the `200` status
  - removed the optional property `agent_cli_status` from the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/summary-preference/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
