Update AI model (superadmin only)
Updates a provider entry in the global AiModel registry. SUPERADMIN-only. If vercelUniqueName is changed, it must remain unique across the registry; duplicates return 400.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Human-readable provider name shown in the admin UI (e.g. Anthropic, OpenAI).
Vercel AI SDK provider identifier (e.g. anthropic, openai, google). If changed, must remain unique across the registry.
Provider marketing/docs URL displayed alongside the provider card.
Per-model metadata: modelName and optional description/pricing.
Response
AI model updated
Single-AiModel success envelope returned by create/update of an AiModel registry entry.
true An AiModel registry entry (provider plus its available models).
{
"_id": "5f7b1c2e8a1d4e0012c3b4a5",
"providerName": "Anthropic",
"vercelUniqueName": "anthropic",
"websiteUrl": "https://www.anthropic.com",
"modelDetails": [
{
"modelName": "claude-sonnet-4-6",
"description": "Latest Sonnet release."
},
{
"modelName": "claude-haiku-4-5",
"description": "Fast, cost-efficient Haiku."
}
],
"createdAt": "2025-09-12T14:22:10.000Z",
"updatedAt": "2026-04-30T09:11:45.000Z"
}