---
displayed_sidebar: pricingReference
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# AddRulesDTO

The rules to add to a price set.

## Properties

<ParameterTypes parameters={[
  {
    "name": "priceSetId",
    "type": "`string`",
    "description": "The ID of the price set to add the rules to.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "rules",
    "type": "`&#123; attribute: string  &#125;`[]",
    "description": "The rules to add to a price set. The value of `attribute` is the value of the rule's `rule_attribute` attribute.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": [
      {
        "name": "attribute",
        "type": "`string`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  }
]} />
