Update a managed ML model (instance admin)
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": true,
"is_default": false,
"is_parser": false,
"is_default_reranker": false,
"use_vllm_guided_choice": true,
"start_messages_template": null,
"health": {
"status": "healthy",
"is_healthy": true,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid}"
payload = {
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": True,
"is_default": False,
"is_parser": False,
"is_default_reranker": False,
"use_vllm_guided_choice": True,
"start_messages_template": None,
"health": {
"status": "healthy",
"is_healthy": True,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'd612ede5-16b6-4d7b-b01b-5afb873b26bb',
name: 'alfred-ft5',
technical_name: 'alfred-ft5',
litellm_model: 'hosted_vllm/alfred-ft5',
model_type: 'Large Language Model',
endpoint: 'http://models-gra11-afe6f177.lighton.ai:30424/v1/',
max_model_len: 32768,
deployment_type: 'Self-Hosted',
enabled: true,
is_default: false,
is_parser: false,
is_default_reranker: false,
use_vllm_guided_choice: true,
start_messages_template: null,
health: {
status: 'healthy',
is_healthy: true,
last_checked_at: '2026-08-12T09:31:44.512000Z'
}
})
};
fetch('https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": true,
"is_default": false,
"is_parser": false,
"is_default_reranker": false,
"use_vllm_guided_choice": true,
"start_messages_template": null,
"health": {
"status": "healthy",
"is_healthy": true,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}{
"detail": "Instance admin access required."
}{
"detail": "ML model d612ede5-16b6-4d7b-b01b-5afb873b26bb not found."
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Models
Update a managed ML model (instance admin)
Update a managed model. Applied as a delete+recreate under the hood (LiteLLM’s native update endpoint is unreliable). Reserved to Sys Admin / Admin roles.
PATCH
/
api
/
v3
/
instance
/
ml-models
/
{uuid}
Update a managed ML model (instance admin)
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": true,
"is_default": false,
"is_parser": false,
"is_default_reranker": false,
"use_vllm_guided_choice": true,
"start_messages_template": null,
"health": {
"status": "healthy",
"is_healthy": true,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid}"
payload = {
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": True,
"is_default": False,
"is_parser": False,
"is_default_reranker": False,
"use_vllm_guided_choice": True,
"start_messages_template": None,
"health": {
"status": "healthy",
"is_healthy": True,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'd612ede5-16b6-4d7b-b01b-5afb873b26bb',
name: 'alfred-ft5',
technical_name: 'alfred-ft5',
litellm_model: 'hosted_vllm/alfred-ft5',
model_type: 'Large Language Model',
endpoint: 'http://models-gra11-afe6f177.lighton.ai:30424/v1/',
max_model_len: 32768,
deployment_type: 'Self-Hosted',
enabled: true,
is_default: false,
is_parser: false,
is_default_reranker: false,
use_vllm_guided_choice: true,
start_messages_template: null,
health: {
status: 'healthy',
is_healthy: true,
last_checked_at: '2026-08-12T09:31:44.512000Z'
}
})
};
fetch('https://paradigm.lighton.ai/api/v3/instance/ml-models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "d612ede5-16b6-4d7b-b01b-5afb873b26bb",
"name": "alfred-ft5",
"technical_name": "alfred-ft5",
"litellm_model": "hosted_vllm/alfred-ft5",
"model_type": "Large Language Model",
"endpoint": "http://models-gra11-afe6f177.lighton.ai:30424/v1/",
"max_model_len": 32768,
"deployment_type": "Self-Hosted",
"enabled": true,
"is_default": false,
"is_parser": false,
"is_default_reranker": false,
"use_vllm_guided_choice": true,
"start_messages_template": null,
"health": {
"status": "healthy",
"is_healthy": true,
"last_checked_at": "2026-08-12T09:31:44.512000Z"
}
}{
"detail": "Instance admin access required."
}{
"detail": "ML model d612ede5-16b6-4d7b-b01b-5afb873b26bb not found."
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data