Skip to main content
PUT
/
api
/
ai-models
/
organization
/
{organizationId}
/
provider
/
{providerId}
Update an existing AI provider configuration for organization
curl --request PUT \
  --url https://your-instance.example.com/api/ai-models/organization/{organizationId}/provider/{providerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "modelDetail": "claude-haiku-4-5"
}
'
{
  "success": true,
  "message": "API key for anthropic removed successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required
providerId
string
required

Body

application/json
modelDetail
string

New modelName for this provider entry; must exist in the underlying AiModel's modelDetails.

apiKey
string

Replacement provider API key; stored encrypted and never returned in GET responses.

Response

Provider updated

Generic success envelope used for delete / update endpoints that do not return a resource.

success
enum<boolean>
required
Available options:
true
message
string