ConditionGroups
Introduction
ConditionGroups allow you to combine multiple Conditions and nested groups with boolean expressions.
They are used to build logic trees such as:
A AND BA OR (B AND C)
A ConditionGroup can be attached to a Trigger or another ConditionGroup.
Model Definition
Relations
Attachable Types
trigger- Attaches the group to a Trigger.conditionGroup- Nests the group below another Condition Group.formFieldDisplayCondition- Attaches the group to a form-field display condition.
Expressions
AND- Requires every child condition or group to match.OR- Requires at least one child condition or group to match.
Create
Create a new ConditionGroup.
Definition
POST /api/condition-groups
Request Keys
attachable_id*
integer
-
ID of the parent attachable entity.
Keys with * are required.
Example Request
Example Response
Update
Update an existing ConditionGroup.
Definition
PUT /api/condition-groups/{conditionGroup}
Route Parameters
conditionGroup
integer
ConditionGroup ID.
Request Keys
attachable_id
integer
-
New parent entity ID.
Behavior
Only submitted keys are updated.
Example Request
Example Response
Delete
Delete a ConditionGroup.
Definition
DELETE /api/condition-groups/{conditionGroup}
Route Parameters
conditionGroup
integer
ConditionGroup ID.
Example Request
Example Response
Last updated