---
title: "Update organization LLM provider"
method: PATCH
path: "/v1/llm-providers/{llmProviderId}"
tags: ["LLM Providers"]
---

# Update organization LLM provider

`PATCH /v1/llm-providers/{llmProviderId}`

Updates an existing organization LLM provider, including its provider config, selected models, secret, and access grants. Custom providers accept JSON/JSONC text or an MCP-supplied customConfig object.

## Path parameters

- `llmProviderId` string, typeid, required

## Request body

- object
  - `name` string, required
  - `source` 'models_dev' | 'custom', required
  - `providerId` string
  - `modelIds` string[]
  - `customConfigText` string
  - `customConfig` unknown
  - `credentialMode` 'shared' | 'per_member'
  - `apiKey` string
  - `apiKeys` object
  - `memberIds` string[]
  - `teamIds` string[]
  - `allMembers` boolean

## Response `200`

Organization LLM provider updated successfully.

- LlmProviderResponse
  - `llmProvider` object, required
    - `memberCredential` object
      - `state` 'missing' | 'active' | 'blocked' | 'stale' | 'error', required

## Other responses

- `400` — The provider update request was invalid.
- `401` — The caller must be signed in to update organization LLM providers.
- `403` — Only the provider creator or a workspace admin can update providers.
- `404` — The provider or a referenced resource could not be found.

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openworklabs/den-api/revisions/fcbb34aa1702/schema)
