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

# UpdateRuleTypeDTO

The data to update in a rule type. The `id` is used to identify which price set to update.

## Properties

<ParameterTypes parameters={[
  {
    "name": "default_priority",
    "type": "`number`",
    "description": "The priority of the rule type. This is useful when calculating the price of a price set, and multiple rules satisfy the provided context. The higher the value, the higher the priority of the rule type.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "id",
    "type": "`string`",
    "description": "The ID of the rule type to update.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "name",
    "type": "`string`",
    "description": "The display name of the rule type.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "rule_attribute",
    "type": "`string`",
    "description": "The unique name used to later identify the rule\\_attribute. For example, it can be used in the `context` parameter of the `calculatePrices` method to specify a rule for calculating the price.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} />
