Skip to main content
PATCH
/
models
/
{model_id}
Update a model
curl --request PATCH \
  --url https://app.gomangrove.com/api/v1/models/{model_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": {
    "cadence": "monthly",
    "partition_type": "feedstock"
  }
}
'
{
  "id": "mdl_abc123def456",
  "name": "Carbon Calculation Model",
  "version": 1,
  "is_latest": true,
  "cadence": "monthly",
  "partition_type": "feedstock",
  "order": 1,
  "created_at": "2025-01-15T10:00:00.000Z",
  "updated_at": "2025-01-15T12:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

model_id
string
required

Model friendly ID (e.g., mdl_abc123def456)

Body

application/json
model
object

Response

200

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>