{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-openapi/content-intelligence.yaml","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"openapi/content-intelligence.yaml","dynamicMarkdocComponents":[],"baseSlug":"/openapi/content-intelligence","seo":{"title":"Document Rules","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"description":"Document Rules are automated policies that govern how documents behave as they are created\nor updated in the platform. Each rule defines **conditions** (when to fire) and\n**actions** (what to do). Rules are evaluated asynchronously by the Action & Media Flows\nservice whenever a matching document event occurs.\n\n**Condition matching:**\n\nRules evaluate conditions against document fields. The `matchType` controls how multiple\nconditions combine:\n\n| Match Type | Behavior |\n|---|---|\n| `MATCH_ALL` | All conditions must be true (AND logic) |\n| `MATCH_ANY` | At least one condition must be true (OR logic) |\n| `MATCH_NONE` | No conditions may be true (NOT logic) |\n\n**Condition operators:**\n\n| Operator | Description |\n|---|---|\n| `OP_EQ` | Field equals the specified value |\n| `OP_NE` | Field does not equal the specified value |\n| `OP_MATCHES` | Field matches a regular expression |\n| `OP_NOT_MATCHES` | Field does not match a regular expression |\n| `OP_IS_EMPTY` | Field is absent or null |\n| `OP_IS_NOT_EMPTY` | Field is present and non-null |\n\n**Condition sources** — what the condition evaluates against:\n\n| Source | Description |\n|---|---|\n| `SOURCE_KIND` | The document kind (type) |\n| `SOURCE_DOC_VALUE` | The current value of a document field |\n| `SOURCE_PREV_DOC_VALUE` | The previous value of a field (before the triggering update) |\n\n**Available actions:**\n\n| Action | Description |\n|---|---|\n| `setProperty` | Write a metadata field value on the document |\n| `setLink` | Create a link edge between the document and another document |\n| `setPolicy` | Apply an access policy grant (`READ` or `MODIFY`) to the document |\n\n**Rule lifecycle:**\n- `create / update` — define or revise rule conditions and actions\n- `enable / disable` — activate or pause a rule without deleting it\n- `test` — evaluate a rule against a sample document payload before enabling in production\n- `delete` — permanently remove a rule\n"},"itemId":"document-rules","disableAutoScroll":true,"metadata":{"subType":"openapi-operation"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"api.tenovos.com","port":4000,"ipAddress":"216.73.217.51"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/openapi/content-intelligence/document-rules","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}