PATCH
/v1/custom-models/{model_id}Update a custom model
Update a custom model's display name, description or private system prompt. The alias stays fixed. Send null to clear a field.
Authentication: Bearer API key in the Authorization header
Path parameters
model_idstringrequired
Request body
descriptionstring | nulldisplay_namestring | nullsystem_promptstring | null
Responses
200Success. The updated custom model.
Response
aliasstringrequiredbaseline_modelstringrequiredcreated_atstringrequireddisplay_namestringrequiredgateway_alias_idstringrequiredidstringrequiredidentity_idstringrequiredstageenumstatusstringrequiredupdated_atstringrequireddescriptionstring | nullrequiredsystem_promptstring | nullThe model's private system prompt, applied to Chat and A/B inference. Null when none is set.
422Invalid request.
Response
detailarray<object>detail
ctxobjectinputanylocarray<string | integer>requiredmsgstringrequiredtypestringrequired
Request
curl -X PATCH 'https://api.staging.experientiallabs.ai/v1/custom-models/00000000-0000-4000-8000-000000000001' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"system_prompt": "You are a concise support assistant for Acme."
}'Response
{
"alias": "string",
"baseline_model": "string",
"created_at": "string",
"display_name": "string",
"gateway_alias_id": "string",
"id": "string",
"identity_id": "string",
"status": "string",
"updated_at": "string",
"description": "string"
}https://api.staging.experientiallabs.ai/v1/custom-models/00000000-0000-4000-8000-000000000001