## A Ruleset

A Ruleset is a collection of rules applied to proposals through the **Proposal Departments** feature. Each Ruleset contains one or more rule groups, and each group consists of rules that define conditions for individual item attributes. Merchants and suppliers use **Product Rulesets** to set expectations for proposal submissions, ensuring all product data meets the required standards.

- Rulesets enforce validation on items and attributes during the proposal process.
- Only items that meet the defined criteria will be accepted into the proposal.
- Every merchant must create at least two Rulesets:
  - One for Merchant-side validation
  - One for Supplier-side validation
  - Refer to the [Proposal Departments](https://developer.fabric.inc/v3/dropship/dropship-retailers/settings/proposal-departments) page for setup details.

## Creating and Managing Product Rulesets

1. In the main menu, click your merchant name > **Merchant Settings**. The **Merchant Settings** page is displayed.
2. Click **Product Rulesets**. The **Product Rulesets** page is displayed.
3. Click **Create Ruleset**. The **Create Ruleset** window is displayed.
4. Enter the following details:
   - A ruleset **Name**
   - A ruleset **Description**
5. Click **Create**.

Your new Ruleset will appear in the list on the **Product Rulesets** page. However, you must still create the Rule Group and Rules within the group.

### Creating a rule group for a product ruleset

1. From the **Product Rulesets** page, select a Ruleset.
2. In the **Rule Groups** section, click **Create**. The **Create Rule groups** window is displayed.
3. Enter the following details:
   - Name: A label for the group, for example: Identifiers, Description, Pricing, or Images.
   - Position: Determines the display order on the item details page (must be an integer).
   - Description (optional): Notes about what the group contains.
4. Click **Save**.

The **Rule Group** is created. You can now add and configure validation rules for individual attributes in this group.

You can create as many **Rule Groups** as needed per **Product Ruleset**.

### Adding rules to a rule group

1. Select a **Rule Group** within the Product Ruleset.
2. In the **Rules** section, click Create. The **Add Rule** window is displayed.
3. Enter the following details:
   - **Attribute**: Choose the attribute to validate. Only fabric Dropship-defined attributes are shown.
   - **Name**: A clear label for the rule.
   - **Position**: Controls the rule’s order on the item detail page.
   - **Description (optional)**: Purpose or usage context.
   - **Is Required**: Toggle to enforce the attribute as mandatory.
4. Click **Save**.

The **Rule** is saved to the **Rule Group**. You can now optionally add validators to this rule.

A **Rule Group** can contain multiple **Rules**.

### Adding validators to a rule (optional)

Validators allow you to apply more advanced logic to ensure data accuracy. To add a validator:

1. Click **Add** next to the rule in the list. The **Rule Validators** window is displayed.
2. In the **Type** field, select the validator type from the dropdown.
3. In the **Value** field, enter a value to define the validation logic.
4. Click **Save**.

Only one validator can be assigned to a rule at a time.
