Save Document Validation Custom Rule
Create or update a tenant-scoped custom document validation rule.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The domain of the customer
"example.com"
Body
- RegexRule
- BlacklistRule
- LlmRule
Stable rule ID supplied by the caller.
Regular expression used to detect violations.
"regex"Optional human-readable label for the rule.
Optional regular expression flags.
IGNORECASE, MULTILINE, DOTALL Optional human-readable description of the rule.
Whether the response should include matched_text and snippet for violations from this rule.
Response
Successful Response
Stable rule ID.
The executable rule kind.
regex, blacklist, llm Human-readable label for the UI.
Human-readable description of the rule.
Whether the rule requires multimodal attachment input.
Whether the caller may modify the rule definition.
Whether the caller may delete the rule definition.
Whether violation details (matched_text, snippet) are included by default for this rule.
Regex pattern for editable custom regex rules.
Regex flags for editable custom regex rules.
IGNORECASE, MULTILINE, DOTALL Blacklist terms for editable custom blacklist rules.
Blacklist case-sensitivity for editable custom blacklist rules.
High-level purpose of the rule, when LLM-based.
What counts as a violation, when LLM-based.
What should not be flagged, when LLM-based.