> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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
           - ONE-OF:
               - name: newMembersOptions  | type: NewMembersOptions | description: Options for new members.  **Note:** This object is relevant only when `type` is `NEW_MEMBERS`.
                   - name: durationInHours  | type: number | description: For how many hours the member is new.
       - 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
           - ONE-OF:
               - name: patternsOptions  | type: Patterns | description: Options for the patterns trigger.
                   - name: words  | type: Array<string> | description: List of words that can trigger a rule. The `*` wildcard can be used to match a partial word. For example: - `spam`: Matches only "spam". - `spam*`: Matches "spam", "spammer", "spammy". - `*spam`: Matches "antispam", "multispam". - `sp*m`: Matches "spim", "spam", "spum".
                   - name: expressions  | type: Array<string> | description: [Regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions).
               - name: contentFeaturesOptions  | type: ContentFeatures | description: Options for the content features trigger.
                   - name: videos  | type: boolean | description: Whether the content contains videos.
                   - name: images  | type: boolean | description: Whether the content contains images.
                   - name: links  | type: boolean | description: Whether the content contains links.
                   - name: attachments  | type: boolean | description: Whether the content contains attachments or files.
               - name: attributeOptions  | type: Attribute | description: Options for the attributes trigger. You can only have 1 attribute per rule.
                   - name: name  | type: string | description: Attribute name.
                   - name: values  | type: Array<string> | description: Attribute values.
       - name: exemptions  | type: Exemptions | description: List of site members or groups to whom the rule doesn't apply.
           - name: memberGroups  | type: Array<string> | description: List of member groups.
           - name: memberIds  | type: Array<string> | 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).

```