ValidationRules
The constraints a value must satisfy, and what happens when it does not.
Test a validation rule
Runs a rule against a value you supply and returns the outcome, without saving the rule or touching any record. Use it to confirm a rule does what you meant before letting it judge real data. Requires `dq.validation-rule.read`.
Create a validation rule
Defines a constraint on an attribute — a pattern, a range, a length, membership of a reference list, or a condition across two attributes. Severity decides the consequence: an error blocks the save, a warning records the violation and lets it through. A rule whose configuration the engine cannot execute is rejected when you create it rather than silently doing nothing. Requires `dq.validation-rule.create`.
List validation rules
Returns validation rules, filterable by entity type and attribute. Requires `dq.validation-rule.read`.
Get a validation rule
Returns one validation rule and its configuration. Requires `dq.validation-rule.read`.
Update a validation rule
Changes a rule's configuration or severity. Existing records are not re-judged until they are next written or rescored. Requires `dq.validation-rule.update`.
Delete a validation rule
Soft-deletes a validation rule, which stops it judging anything. Requires `dq.validation-rule.delete`.
Restore a deleted validation rule
Reinstates a soft-deleted validation rule. It begins judging values again from the next write. Requires `dq.validation-rule.update`.