Conditions
Introduction
Conditions control whether a Trigger's Actions should execute.
A Condition can be attached directly to a Trigger or nested inside a ConditionGroup to build complex boolean logic.
Model Definition
Relations
Attachable Types
trigger- Attaches the condition to a Trigger.conditionGroup- Nests the condition in a ConditionGroup.formFieldDisplayCondition- Attaches the condition to a form-field display condition.
Types
systemVariable- Compares a resolved System Variable.formFieldValue- Compares a form-field value.taskStatus- Compares a task status.
Operators
equal- Matches equal values.not_equal- Matches unequal values.greater- Matches a greater value.greater_equal- Matches an equal or greater value.lower- Matches a lower value.lower_equal- Matches an equal or lower value.is_null- Matches a missing value without requiringvalue.not_null- Matches a present value without requiringvalue.contains- Matches when the source containsvalue.not_contains- Matches when the source does not containvalue.
System Variable Handling
For a systemVariable condition, key must contain a valid key-only System Variable, such as system.user.id. Do not wrap the key in braces or add a formatter.
For every condition type, value may contain a validated rendered template, such as User ID: {{ system.user.id }}. Invalid template syntax and invalid System Variable expressions are rejected during creation and update.
Create
Create a new Condition.
Definition
POST /api/conditions
Request Keys
attachable_id*
integer
-
ID of the parent attachable entity.
key*
string | integer
-
Type-specific condition key (e.g. system variable key or form field ID).
Keys with * are required.
Behavior
valueis required unlessoperatorisis_nullornot_null.A
systemVariablecondition requireskeyto use key-only syntax.
Example Request
Example Response
Update
Update an existing Condition.
Definition
PUT /api/conditions/{condition}
Route Parameters
condition
integer
Condition ID.
Request Keys
attachable_id
integer
-
New parent entity ID.
key
string | integer
-
Updated type-specific condition key.
Behavior
Only submitted keys are updated.
The resulting condition must keep a valid type-specific key, operator, and value combination. A
systemVariablekey uses key-only syntax.
Example Request
Example Response
Delete
Delete a Condition.
Definition
DELETE /api/conditions/{condition}
Route Parameters
condition
integer
Condition ID.
Example Request
Example Response
Last updated