Validate one field value
POST /Platform/entities/{entity_type}/validate-field
Validate one field value. Checks it against the entity type's model.
Returns {"valid": true, "coerced": <value>, "yaml_value": ...} on
success, or {"valid": false, "failures": [...]}. The coerced value
shows what would actually be stored (e.g. type coercions). Nothing is
written.
Path parameters
entity_type: str. Entity class name.
Body parameters
field: optional str. Field name to validate.value: optional str. Candidate value to validate/coerce against the field's type.
Returns
ValidateFieldResponse
valid: bool. Whether the value is valid for the field.coerced: optional Any or null. JSON-safe coerced value, when valid.yaml_value: optional str or null. YAML rendering of the coerced value.failures: optional List[str] or null. Why the value is invalid.
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/{entity_type}/validate-field" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'