Skip to content

Reusable rules

The reusable-rule page at /admin/validation/rules/new creates a named validation rule through UpsertValidationRule. A rule is the same validation payload as a field validation, minus the profile, table, and column — it belongs to no single field until applied.

  • rule_name — the rule’s name (required);
  • description — optional;
  • the same validation payload described in Field validation — limits, allowed values, mask, pattern rules, external validation, required, and locked.

The profile is always empty for a rule, because rules are reusable across profiles.

UpsertValidationRule creates or updates the rule with that name. The page reports the backend’s success/message on completion.