---
title: "Update model provider config"
method: PUT
path: "/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}"
tags: ["Models"]
---

# Update model provider config

`PUT /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

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.

## Path parameters

- `orgID` string, required
- `modelProviderConfigID` string, required

## Request body

- UpdateModelProviderConfigRequest: 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.
    - `header_name` string: Header that carries the API key when auth_kind is api_key_header.
    - `service` string: AWS service to sign for when auth_kind is sigv4.
    - `region` string: AWS region to sign for when auth_kind is sigv4.
  - `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 `200`

Route response.

- ModelProviderConfig
  - `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.
    - `header_name` string: Header that carries the API key when auth_kind is api_key_header.
    - `service` string: AWS service to sign for when auth_kind is sigv4.
    - `region` string: AWS region to sign for when auth_kind is sigv4.
  - `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.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-05** `3d9e2cf46e07`: 159 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - …155 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 7 warning, 7 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - …10 more
- **2026-09-24** `810d15e0dd80`: 4 info
  - added the new optional request property `headers`
  - added the new optional request property `secret_headers`
  - added the required property `headers` to the response with the `200` status
  - added the required property `secret_headers` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/model-provider-configs/:modelProviderConfigID/put.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
