---
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
  - `apiKey` string
  - `apiKeys` object
  - `memberIds` string[]
  - `teamIds` string[]
  - `allMembers` boolean

## Response `200`

Organization LLM provider updated successfully.

- LlmProviderResponse
  - `llmProvider` object, 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.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/55ba7d5c7a7b/schema)
