Api Models Partial Update
PATCH handler with superadmin lock and field protection.
Checks:
- Object lock (is_managed=True -> non-superadmins can’t modify)
- Field protection (non-superadmins can’t modify specific fields)
Authentication
AuthorizationBearer
JWT access token or Respan API key
Request
This endpoint expects an object.
project
affiliation_category
custom- Customkeywordsai- Keywordsai
is_managed
is_called_by_custom_name
model_name
base_model_name
display_name
max_context_window
input_cost
output_cost
cache_hit_input_cost
cache_creation_input_cost
respan_discount_rate
streaming_support
function_call
image_support
overridden_fields
load_balance_backups
status
active- Activedeprecated- Deprecated
is_verified
Whether the model’s pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.
source
Source of truth for this model definition
hardcoded- Synced from Codedb- Database Only
model_type
Type of model: chat, embedding, or audio
chat- Chatembedding- Embeddingaudio- Audio
metadata
Flexible catalog metadata; known keys are documented, extras allowed.
organization
Response
provider
Public API serializer for nested provider in model responses - hides internal fields
supported_params
model_name
id
is_byok
effective_discount_rate
project
affiliation_category
custom- Customkeywordsai- Keywordsai
is_managed
is_called_by_custom_name
base_model_name
display_name
max_context_window
input_cost
output_cost
cache_hit_input_cost
cache_creation_input_cost
respan_discount_rate
streaming_support
function_call
image_support
overridden_fields
load_balance_backups
status
active- Activedeprecated- Deprecated
is_verified
Whether the model’s pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.
source
Source of truth for this model definition
hardcoded- Synced from Codedb- Database Only
model_type
Type of model: chat, embedding, or audio
chat- Chatembedding- Embeddingaudio- Audio
metadata
Flexible catalog metadata; known keys are documented, extras allowed.