Models

Update model provider config

Changed on

Updates a model provider config's connection settings, such as its credential and headers, and returns the updated config; omitted fields keep their values. The credential secret is checked to exist and match auth_kind, but the provider isn't contacted, so a credential the provider rejects isn't caught here.

put/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

modelProviderConfigID, string required

Model provider config ID (mpc_...).

Request body

UpdateModelProviderConfigRequest required

Update a provider config. Omitted fields keep their current values.

base_url, string

Provider endpoint base URL.

endpoint_path, string

URL path under base_url. This changes where requests are sent, not which API format Omnara speaks.

request_timeout_ms, integer

Total deadline for one provider attempt, including reasoning and response streaming, in milliseconds. Retries have separate deadlines.

idle_timeout_ms, integer

Maximum wait for response headers or the next response bytes, in milliseconds. Heartbeats count as activity. Local response processing does not consume this idle budget.

auth_kind, 'bearer_token' | 'api_key_header' | 'sigv4'

How the credential is sent: as a bearer token, in the header named by auth_options.header_name, or signed with AWS SigV4.

auth_options, object

Non-secret authentication settings. Use an empty object with bearer_token. With api_key_header, set {"header_name":"..."}. With sigv4, set the AWS signing service and region.

credential_secret_id, string

Secret ID (sec_...).

headers, object

Extra HTTP headers sent with every request to this provider. Values are stored and returned as plain text; use secret_headers for keys and tokens. Replaces all headers when provided.

secret_headers, object

Extra HTTP headers whose values come from org-owned generic secrets, mapping header names to secret references. Replaces all secret headers when provided.

Response

Route response.

ModelProviderConfig required
id, string required

Identifies this provider config.

org_id, string required

Organization that owns this provider config.

management_kind, 'tenant' | 'cluster' required

Whether the organization manages this provider or the Omnara installation provisions and manages it.

name, string required

Name agent configs use to reference this provider as model.provider_config.

api_format, 'openai-responses' | 'openai-chat-completions' | 'anthropic-messages' required

Wire protocol Omnara speaks to this provider.

api_variant, string required

Provider-specific flavor of the API format.

base_url, string required

Provider endpoint base URL.

endpoint_path, string required

Path under base_url that model requests are sent to.

request_timeout_ms, integer required

Total deadline for one provider attempt, including reasoning and response streaming.

idle_timeout_ms, integer required

Longest wait for response headers or more response data; heartbeats count as activity.

auth_kind, string required

How Omnara sends the credential to the provider.

auth_options, object required

Non-secret authentication settings for this provider config.

credential_secret_id, string required

Secret holding the credential Omnara sends to the provider.

headers, object required

Extra HTTP headers sent with every request to this provider.

secret_headers, object required

Extra HTTP headers whose values come from the referenced secrets.

created_at, string date-time required

When the provider config was created.

updated_at, string date-time required

When the provider config was last changed.

Changes

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    156 more changes in this revision