Create a model
Create a new model in a project. The model is defined via a YAML string that describes the node tree structure, under a top-level nexus_nodes_attributes list. The new model is version 0 and, as the model’s first version, is active. Use Validate model YAML to check the YAML first. Requires the write:model token scope.
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