define a new assertion
Assertions & manifest
define a new assertion
The condition accepts either a shorthand string ("entity-exists",
"entity-count", "game-phase", "field-check", …) with sibling
parameters (filter, min, max, phase, field, op, value),
or a full structured AssertCondition JSON object. severity is one of
"error", "warning", "info" (default "error").
POST
define a new assertion
Body
application/json
A name, a condition (shorthand string or structured object), and an optional severity.
The body is of type any.
Response
200 - application/json
Assertion entity created; returns its entity_id. Returns ok:false with an error when name or condition is missing or invalid.