Publish a version
publishMake a trained version the live one, used by fills, classify and the Prediction API. Two steps: the first call changes nothing and returns what will change plus a confirmation code; show that to the user, and only after they explicitly agree call again with that exact code. The user's yes is not the code. A code works once, for this model and these arguments, for 10 minutes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>"
},
"name": "publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | The trained version to publish; the latest when left out. | |
| model_id | Yes | The model id, from list_models. | |
| confirmation | No |