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.
Authorizations
Path Parameters
The project's friendly ID (e.g. prj_aBcD1234eFgH5678).
Body
Response
201
One version of a model. Every endpoint that returns a model returns this shape.
The model's friendly ID (e.g. mod_aBcD1234eFgH5678). Each version has its own.
"mod_aBcD1234eFgH5678"
Shared by every version of the model.
Version number. A model created through the API starts at 0, and each new version adds one.
A short name for the version, up to 255 characters (letters, numbers, spaces and _ - . ( ) /).
What changed in the version, up to 500 characters.
Whether this is the version new batch generations and model runs use by default. At most one version of a model is active; the first version is active when it is created.
hourly, daily, weekly, monthly, annually, null How batches are partitioned. The composite values partition by both dimensions at once.
time, feedstock, tracking_id, asset, tracking_id_and_feedstock, tracking_id_and_asset, null Whether this is the highest version number of the model.
Whether the model produces carbon intensity score sets rather than batches.
The production accounting ledger the model produces batches into, or null when it is not linked to one.
The designated quantification methodology, or null for a production model.
Link that opens this model in the Mangrove app. Null when the model has no project.
"https://app.gomangrove.com/nexus/prj_AbCd1234567890Ef/system/mod_aBcD1234eFgH5678"