PUT
/v1/private/optimizationsUpsert optimizationUpsert optimization
Request body
application/json
objectOptimization_Write
dataset_namestringrequirederror_infoobjectShow child attributes
exception_typestringrequiredmessagestringtracebackstringrequiredidstring · uuidlast_updated_atstring · date-timemetadataobjectShow child attributes
anyOf · 3 options
Option 1object
Option 2array of object
Option 3string
namestringobjective_namestringrequiredproject_idstring · uuidProject ID. Takes precedence over project_name when both are provided.
project_namestringProject name. Creates project if it doesn't exist. Ignored when project_id is provided.
statusstringrequiredstudio_configobjectShow child attributes
dataset_namestringrequiredevaluationobjectrequiredShow child attributes
metricsarray of objectrequiredShow child attributes
Show array items
parametersobjecttypestringrequiredllm_modelobjectrequiredShow child attributes
modelstringrequiredparametersobjectoptimizerobjectrequiredShow child attributes
parametersobjecttypestringrequiredpromptobjectrequiredShow child attributes
messagesarray of objectrequiredShow child attributes
Show array items
contentstringrequiredrolestringrequired{
"dataset_name": "string",
"error_info": {
"exception_type": "string",
"message": "string",
"traceback": "string"
},
"id": "00000000-0000-0000-0000-000000000000",
"last_updated_at": "2026-06-09T00:00:00Z",
"metadata": {},
"name": "string",
"objective_name": "string",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"status": "cancelled",
"studio_config": {
"dataset_name": "string",
"evaluation": {
"metrics": [
{
"parameters": {},
"type": "string"
}
]
},
"llm_model": {
"model": "string",
"parameters": {}
},
"optimizer": {
"parameters": {},
"type": "string"
},
"prompt": {
"messages": [
{
"content": "string",
"role": "string"
}
]
}
}
}Responses
Headers
Location