AI Models
Update an existing AI provider configuration for organization
Legacy endpoint that updates the modelDetail and/or apiKey on a single aiProviders entry identified by providerId. SUPERADMIN-only and tenant-scoped. At least one field must be supplied.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
organizationId*string
providerId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/ai-models/organization/string/provider/string" \ -H "Content-Type: application/json" \ -d '{ "modelDetail": "claude-haiku-4-5" }'{ "success": true, "message": "API key for anthropic removed successfully"}