Skip to main content
PATCH
Attach/detach a reusable LLM config to an agent, and optionally change the

Path Parameters

id
string<uuid>
required

Agent id

Body

application/json

Attach/detach a reusable LLM config to an agent, and optionally change the inbound format. A config can only be attached if it belongs to the agent owner (per-user ownership keeps the referenced secret in the owner's store). Owner-only (or superuser).

inbound_format
string | null

Optionally change which SDK the agent's code speaks (drives deploy injection).

llm_config_id
string<uuid> | null

Double-option distinguishes the three cases: absent ⇒ leave unchanged; null ⇒ detach (fall back to the owner's default); a UUID ⇒ attach that config.

pinned_model
string | null

Agent-level model pin. Overrides the config's pinned_model. Double-option: absent ⇒ leave unchanged; null ⇒ clear pin; string ⇒ set pin.

Response

Updated, with the freshly resolved config

crate::mcp::ApiResponse envelope around [LlmConfigUpdateResponse].

data
object
required

Response envelope for PATCH /{id}/llm-config — documents the shape of the ad hoc serde_json::json! object the handler returns.

message
string
required
status_code
integer<int32>
required
Required range: x >= 0