Skip to main content
POST
Activate a model version

Authorizations

Authorization
string
header
required

Path Parameters

model_id
string
required

The model's friendly ID (e.g. mod_aBcD1234eFgH5678).

Body

application/json
confirm
boolean
required

Must be true. Guards against accidental activation.

Response

200

One version of a model. Every endpoint that returns a model returns this shape.

id
string

The model's friendly ID (e.g. mod_aBcD1234eFgH5678). Each version has its own.

Example:

"mod_aBcD1234eFgH5678"

name
string

Shared by every version of the model.

version
integer

Version number. A model created through the API starts at 0, and each new version adds one.

version_label
string | null

A short name for the version, up to 255 characters (letters, numbers, spaces and _ - . ( ) /).

description
string | null

What changed in the version, up to 500 characters.

is_active
boolean

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.

cadence
enum<string> | null
Available options:
hourly,
daily,
weekly,
monthly,
annually,
null
partition_type
enum<string> | null

How batches are partitioned. The composite values partition by both dimensions at once.

Available options:
time,
feedstock,
tracking_id,
asset,
tracking_id_and_feedstock,
tracking_id_and_asset,
null
order
integer
is_latest
boolean

Whether this is the highest version number of the model.

is_score_producing
boolean

Whether the model produces carbon intensity score sets rather than batches.

created_at
string<date-time>
updated_at
string<date-time>
ledger
object | null

The production accounting ledger the model produces batches into, or null when it is not linked to one.

quantification_methodology
object | null

The designated quantification methodology, or null for a production model.

ui_url
string<uri> | null

Link that opens this model in the Mangrove app. Null when the model has no project.

Example:

"https://app.gomangrove.com/nexus/prj_AbCd1234567890Ef/system/mod_aBcD1234eFgH5678"