Create a model run
Create and execute a model run. Provide the time range and the data point IDs to use as inputs. The model’s node tree is evaluated against the provided data points before the response returns, so the run comes back in its final state. When an input node has no data in the period, an account that allows incomplete runs gets a created run in the incomplete state, with the gaps in incomplete_nodes; any other account gets 422. Models partitioned by something other than time take the run’s window from the input data points that carry the partition dimension. When none carry it, a model with a cadence uses the span of its dated input data points, and any other model uses the requested window. If the model produces batches into a ledger, the run also creates a batch there. Requires the write:model_run token scope.
Response
The created run, in its final state.
A model run as returned by the single-run endpoints, with whether it can be deleted.
updated means the run computed. incomplete means a data gap (see incomplete_nodes) and is also the initial state. staged and processing are transient while the run is queued and computing. error means a compute failure (see error_message).
incomplete, staged, processing, updated, error