Create a new model version
Create a new version of an existing model with an updated YAML definition. Can only be called on the latest version. The new version inherits the model name and the source version’s settings, and increments the version number. It becomes the active version unless activate is false; if activation fails, the new version is not kept. Requires the write:model token scope.
Body
Response
201
One version of a model. Every endpoint that returns a model returns this shape.
Where a feedstock model takes feedstock identity from. With draws, each cadence window is split by the feedstock drawn from upstream batches; it needs partition_type feedstock, a cadence and one feedstock-draw node. To move a draws model off feedstock, send feedstock_identity_source own_inputs in the same request, or the update returns 422. A model with feedstock_draw or shared_by_draw nodes leaves draws in three steps. Create a version from the latest version's ID without those flags (activate false), send own_inputs (and the new partition_type, if changing it) to the new version's ID, then activate it with POST /models/{id}/activate and confirm true. Sending own_inputs alone returns 422 while flagged nodes remain.
own_inputs, draws