Skip to main content
Version: 87.1.1

createDocRuleCondition

POST 

/doc-rules/:docRuleId/conditions

Creates a condition in the RuleDefinition of the DocRule. The parent condition group is referenced by docRuleConditionGroupId in the request body. Returns the full RuleDefinition of the DocRule (the same payload as getDocRuleDefinition).

Server-side cascade: creating a condition automatically provisions one sub-condition for the new condition and, in every existing range group of the parent condition group, a rangeSubConditions entry keyed by that sub-condition. This honours the invariant of exactly one entry per (SubCondition x RangeGroup). The new sub-condition's conditionTypeId defaults to the reference-table/enum entry with the lowest sequenceNum.

To access the service you need at least one of the following permissions:

Permission (one of)
createDocRule
updateDocRule

Request

Responses