Skip to main content
Version: Next

createDocRuleSubCondition

POST 

/doc-rules/:docRuleId/sub-conditions

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

Server-side cascade: creating a sub-condition automatically adds a rangeSubConditions entry keyed by the new sub-condition in every existing range group of the parent condition's condition group. 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