API Reference
Validate a YAML string against a model’s config without persisting. Performs multi-layer validation including YAML syntax, structure, business logic, and simulation readiness.
cURL
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" } '
200
Valid
{ "valid": true, "errors": [], "warnings": [] }
Model friendly ID (e.g., mdl_abc123def456)
YAML content to validate
Show child attributes