LLM Providers

Update organization LLM provider

Changed on

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.

patch/v1/llm-providers/{llmProviderId}

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/llm-providers/{llmProviderId}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

llmProviderIdstring typeid required

Den TypeID with 'lpr_' prefix and a 26-character base32 suffix.

Request body

namestring required
source'models_dev' | 'custom' required
providerIdstring
modelIdsstring[]
customConfigTextstring
customConfigunknown
credentialMode'shared' | 'per_member'
apiKeystring
apiKeysobject
memberIdsstring[]
teamIdsstring[]
allMembersboolean

Response

Organization LLM provider updated successfully.

Changes