Skip to main content
PUT
/
api
/
tenant
/
ai
Updates the AI provider configuration for the current tenant. Hidden from the SDK/CLI because the payload carries provider API keys; AI config is tenant infrastructure, not customer data ops or migration scope. Configure AI through the admin UI instead.
curl --request PUT \
  --url https://{install}/api/tenant/ai \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity": "<string>",
  "openAIActive": true,
  "openAIKey": "<string>",
  "openAIModel": "<string>",
  "azureActive": true,
  "azureEndpoint": "<string>",
  "azureKey": "<string>",
  "azureModel": "<string>",
  "anthropicActive": true,
  "anthropicKey": "<string>",
  "anthropicModel": "<string>",
  "tenantId": "<string>",
  "id": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updated": "2023-11-07T05:31:56Z",
  "updatedBy": "<string>",
  "deleted": true
}
'

Authorizations

Authorization
string
header
required

JWT Bearer token. Obtain via the OAuth 2.0 token endpoint.

Body

The updated AI configuration including provider keys and model selections.

entity
null | string
openAIActive
boolean
openAIKey
string
openAIModel
string
azureActive
boolean
azureEndpoint
string
azureKey
string
azureModel
string
anthropicActive
boolean
anthropicKey
string
anthropicModel
string
tenantId
string
id
string
created
string<date-time>
createdBy
string
updated
string<date-time>
updatedBy
string
deleted
boolean

Response

AI configuration updated successfully.