Skip to main content
PATCH
Partially update one of the caller's configs; absent fields keep their

Path Parameters

id
string<uuid>
required

LLM config id

Body

application/json

Partial update — every field is optional. Absent fields keep their current value. is_default is not touched here — use POST /llm-configs/{id}/default.

api_key_secret_name
string | null
fallback_models
string[] | null
max_tokens
integer<int64> | null
model
string | null
name
string | null
pinned
boolean | null
pinned_model
string | null
provider
string | null
secret_value
string | null
temperature
number<double> | null
tier1_model
string | null
tier2_model
string | null
tier3_model
string | null

Response

data is the updated config object (id, name, provider, model, fallback_models, temperature, max_tokens, api_key_secret_name, pinned, pinned_model, tier1_model, tier2_model, tier3_model, is_default, created_at, updated_at)

Doc-only schema for the standard MCP ApiResponse envelope ({"data": …, "status_code": N, "message": "…"}). Most /api/mcp/* payloads are service-layer serde_json::Value views, so data is documented as a free-form object; each route's response description says what it carries.

data
object | null
required
message
string
required
status_code
integer<int32>
required
Required range: x >= 0
Example:

200