Activate a model version
Marks the given model version as active. The previously active sibling version (same name, same project) is automatically deactivated. Activation is the equivalent of pinning the version as the default used for new batch generations and model runs; per-batch overrides can still target other versions via model_overrides on POST /ledgers/{ledger_id}/batch_generations. Any version can be activated, not only the latest. Activation requires explicit confirmation: pass confirm: true to guard against accidental promotion. Requires the write:model token scope.
Authorizations
Path Parameters
The model's friendly ID (e.g. mod_aBcD1234eFgH5678).
Body
Must be true. Guards against accidental activation.
Response
200
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"