Replace Custom Model
PUT handler with superadmin lock and field protection.
Same as patch() - checks lock and field protection before delegating.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Path parameters
Request
custom- Customkeywordsai- Keywordsai
active- Activedeprecated- Deprecated
Whether the model’s pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.
Source of truth for this model definition
hardcoded- Synced from Codedb- Database Only
Type of model: chat, embedding, or audio
chat- Chatembedding- Embeddingaudio- Audio
Flexible catalog metadata; known keys are documented, extras allowed.
Response
custom- Customkeywordsai- Keywordsai
active- Activedeprecated- Deprecated
Whether the model’s pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.
Source of truth for this model definition
hardcoded- Synced from Codedb- Database Only
Type of model: chat, embedding, or audio
chat- Chatembedding- Embeddingaudio- Audio
Flexible catalog metadata; known keys are documented, extras allowed.