Skip to main content
POST
/
models
/
{model_id}
/
versions
Create a new model version
curl --request POST \
  --url https://app.gomangrove.com/api/v1/models/{model_id}/versions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "yaml": "nexus:\n  - name: Updated Net Carbon Removal\n    formula: input_1 - input_2 - input_3\n"
}
'
{
  "id": "mdl_xyz789abc123",
  "name": "Carbon Calculation Model",
  "version": 2,
  "is_latest": true,
  "cadence": "monthly",
  "partition_type": "feedstock",
  "order": 1,
  "created_at": "2025-01-16T10:00:00.000Z",
  "updated_at": "2025-01-16T10:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

model_id
string
required

Model friendly ID (e.g., mdl_abc123def456)

Body

application/json
yaml
string
required

YAML defining the updated node tree

Response

201

id
string
name
string
version
integer
is_latest
boolean
cadence
string
partition_type
string
order
integer
created_at
string<date-time>
updated_at
string<date-time>