Skip to main content
PATCH
/
v1
/
orgs
/
{orgId}
/
llm-providers
/
{llmProviderId}
Update organization LLM provider
curl --request PATCH \
  --url https://api.openworklabs.com/v1/orgs/{orgId}/llm-providers/{llmProviderId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "models_dev",
  "providerId": "<string>",
  "modelIds": [
    "<string>"
  ],
  "customConfigText": "<string>",
  "apiKey": "<string>",
  "memberIds": [
    "<string>"
  ],
  "teamIds": [
    "<string>"
  ]
}
'
{
  "llmProvider": {}
}

Path Parameters

orgId
string<typeid>
required

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

Required string length: 30
Pattern: ^org_.*
llmProviderId
string<typeid>
required

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

Required string length: 30
Pattern: ^lpr_.*

Body

application/json
source
enum<string>
required
Available options:
models_dev,
custom
providerId
string
Required string length: 1 - 255
modelIds
string[]
Minimum array length: 1
Required string length: 1 - 255
customConfigText
string
Minimum string length: 1
apiKey
string
Maximum string length: 65535
memberIds
string<typeid>[]
Maximum array length: 500

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

Required string length: 29
Pattern: ^om_.*
teamIds
string<typeid>[]
Maximum array length: 500

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

Required string length: 30
Pattern: ^tem_.*

Response

Organization LLM provider updated successfully.

llmProvider
object
required