Skip to main content
POST
/
models
/
{model_id}
/
yaml_validate
Validate model YAML
curl --request POST \
  --url https://app.gomangrove.com/api/v1/models/{model_id}/yaml_validate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "yaml": "nexus:\n  - name: Net Carbon Removal\n    formula: input_1 - input_2\n"
}
'
{
  "valid": true,
  "errors": [],
  "warnings": []
}

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 content to validate

Response

200 - application/json

200

valid
boolean
errors
object[]
warnings
object[]