# Rules reference

Rules reference explains the fields, filters, actions, and priority values shown on the **Rules** tab.

## Main fields

| Field | Access | Description |
| --- | --- | --- |
| Name | Editable | A friendly name used to identify the rule. |
| Profile | Editable | The configuration profile applied when the rule conditions match a newly purchased DID number. |
| Countries | Editable | The country or countries where the rule applies. |
| Number Types | Editable | The DID number types where the rule applies, such as Local, Mobile, National, Shared Cost, Toll-free, or Global / UIFN. |
| Regions | Editable | The region where the rule applies. |
| Cities | Editable | The city where the rule applies. |

## Filters

| Filter | Filter condition | Description |
| --- | --- | --- |
| Name | Contains text input | Filters rules by rule name. |
| Country | Searchable single-select filter | Filters rules by the country assigned in the rule. |
| Region | Single-select filter | Filters rules by region. |
| City | Search text input | Filters rules by city. |
| Profile | Searchable single-select filter | Filters rules by assigned configuration profile. |
| Number type | Multi-select checkbox filter | Filters rules by one or more selected DID number types. |
| Filters | Additional filter selector | Opens the filter picker for additional available filters on the page. |

### Filter conditions

| Filter condition | Description |
| --- | --- |
| Contains text input | Matches rule names that contain the entered text. |
| Searchable single-select filter | Allows one value to be selected from a searchable list. |
| Single-select filter | Allows one value to be selected from a list. |
| Search text input | Matches city values using entered search text. |
| Multi-select checkbox filter | Allows multiple DID number types to be selected at the same time. |
| Additional filter selector | Opens the list of extra filters that can be added to the current filter row. |

## Rule priority

| Priority | Rule scope | Description |
| --- | --- | --- |
| 1 | City | DIDWW checks city-level rules first and applies the matching profile when a city rule matches.  Note  Applying the rule to `Cities` is only available when a **single** `Region` is selected. |
| 2 | Region | DIDWW checks region-level rules after city rules when no city rule matches.  Note  Applying the rule to `Regions` is only available when a **single** `Number Type` and a **single** `Country` is selected. |
| 3 | Number type | DIDWW checks number-type rules after city and region rules when no more specific rule matches. |
| 4 | Country | DIDWW checks country-level rules after city, region, and number-type rules when no more specific rule matches. |
| 5 | All countries | DIDWW checks rules that are not limited by country after all more specific rule scopes. |

## Related resources

- [How configuration profiles and rules work](how-configuration-profiles-and-rules-work.html) - Understand how rules apply profiles.
- [Create rules for profiles](how-to-guides/create-rules-for-profiles.html) - Create rules and review rule setup examples.
- [Manage rules](how-to-guides/manage-rules.html) - Edit or delete rules.
- [Configuration profiles reference](profiles-reference.html) - Review configuration profile fields, filters, and actions.

On this page
