Atlas
Admin — Model Config

Set workspace model configuration

Configures a custom LLM provider for the workspace. Overrides the platform default. API key is encrypted at rest.

PUT
/api/v1/admin/model-config

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

application/json

application/json

curl -X PUT "http://localhost:3001/api/v1/admin/model-config" \  -H "Content-Type: application/json" \  -d '{    "provider": "anthropic",    "model": "claude-opus-4-6"  }'
{
  "config": {
    "id": "string",
    "orgId": "string",
    "provider": "anthropic",
    "model": "string",
    "baseUrl": "string",
    "apiKeyMasked": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}