> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Resource: Moderation Rules # Type: Rule Object # Link: https://dev.wix.com/docs/api-reference/crm/community/feedback-moderation/moderation-rules/rule-object.md ## Schema: ```json Type: Rule Object | type: Rule - name: id | type: string | description: Rule ID. - name: value | type: string | description: - name: revision | type: string | description: Revision number, which increments by 1 each time the rule is updated. To prevent conflicting changes, the existing `revision` must be used when updating a rule. - name: value | type: string | description: - name: createdDate | type: string | description: Date and time when the rule was created. - name: seconds | type: string | description: - name: nanos | type: number | description: - name: updatedDate | type: string | description: Date and time when the rule was updated. - name: namespace | type: string | description: The app name and entity which the rule belongs to. Currently, moderation rules support [Comments](https://dev.wix.com/docs/rest/crm/community/comments/comments/introduction.md) and [Reviews](https://dev.wix.com/docs/rest/crm/community/reviews/reviews/introduction.md): + When the `namespace` is `comments` the format is `comments/{APP_ID}`. For example, for moderating content on Wix Blog the `namespace` is `"comments/14bcded7-0066-7c35-14d7-466cb3f09103"`. + When the `namespace` is `reviews` the format is `reviews/{APP_NAME}`. For example, for moderating content on Wix Reviews the `namespace` is `"reviews/stores"`. To retrieve the ID for a Wix app, see [Apps Created By Wix](https://dev.wix.com/docs/rest/articles/get-started/apps-created-by-wix.md). - name: name | type: string | description: Rule name. - name: audience | type: Audience | description: Audience to which the rule applies. - name: type | type: string | description: Audience type. enum: VISITORS, MEMBERS, MEMBERS_AND_VISITORS, NEW_MEMBERS - name: trigger | type: Trigger | description: A condition that triggers the rule. **Note:** If you need to have several triggers for the same `namespace`, create separate rules. - name: type | type: string | description: Trigger type. enum: PATTERNS, CONTENT_FEATURES, ATTRIBUTE, ALWAYS - name: exemptions | type: Exemptions | description: List of site members or groups to whom the rule doesn't apply. - name: memberGroups | type: Array | description: List of member groups. - name: memberIds | type: Array | description: List of member IDs. - name: action | type: Action | description: What action should be taken after the rule is triggered. - name: type | type: string | description: Action type. enum: UNKNOWN_TYPE, REJECT, NEEDS_MANUAL_APPROVAL - name: enabled | type: boolean | description: Whether the rule is enabled. - name: extendedFields | type: ExtendedFields | description: Custom field data for the rule object. **Note:** You must configure extended fields using schema plugin extensions in your app's dashboard before you can access the extended fields with API calls. - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md). ```