Validate entity YAML without saving it
POST /Platform/entities/{entity_type}/{entity_id}/validate
Validate entity YAML without saving it.
Reconstructs + validates the entity from yaml_content (same path as an
authoritative save) and returns the canonical YAML on success or the
validation errors on failure. Nothing is written.
Entity references must be typed mappings such as
{entity_type: Agent, id: "..."}, not bare ID strings.
Path parameters
entity_type: str. Entity class name.entity_id: str. Entity ID (must match the id in the YAML).
Body parameters
yaml_content: str. Candidate full YAML to validate.branch: optional str. Hilus branch (defaultmain).
Returns
EntityValidateResponse
valid: optional bool. Whether the YAML is a valid entity.canonical_yaml: optional str or null. The YAML as it would be stored, when valid.failures: optional List[str] or null. Why the YAML is invalid.
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}/validate" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'