Update the AI provider configuration
PATCH /admin/system/ai
Persists the AI provider list and default-provider selection. Providers are stored but NOT yet used for inference — the AI auto-tagging / search phase wires the providers into a real client. API keys are stored as plain strings for now (admin-only table); a secrets-backend migration is planned.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”AI provider configuration. Persisted under the sysconfig key
ai. API keys are stored as plain strings for now (admin-
only table; never federated); a secrets-backend migration is
planned.
object
Picks the providers[*].id used when nothing else
specifies. Empty = no default (callers must choose, or
AI features stay disabled).
object
E.g. gpt-4o, claude-sonnet-4-6
Override for self-hosted / proxied endpoints.
Raw API key (interim — will move to a secrets backend reference). Sent and stored as-is.
Per-kind opaque config (temperature defaults, system prompts, rate limits, …). Integration code owns the schema.
object
Responses
Section titled “ Responses ”Updated AI config
AI provider configuration. Persisted under the sysconfig key
ai. API keys are stored as plain strings for now (admin-
only table; never federated); a secrets-backend migration is
planned.
object
Picks the providers[*].id used when nothing else
specifies. Empty = no default (callers must choose, or
AI features stay disabled).
object
E.g. gpt-4o, claude-sonnet-4-6
Override for self-hosted / proxied endpoints.
Raw API key (interim — will move to a secrets backend reference). Sent and stored as-is.
Per-kind opaque config (temperature defaults, system prompts, rate limits, …). Integration code owns the schema.
object
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completed