> For the complete documentation index, see [llms.txt](https://docs.globalalerting.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globalalerting.com/administration/rules-engine/managing-rules.md).

# Managing Rules

{% hint style="info" icon="user-lock" %}
This action requires the **Manage Rules Engine** permission
{% endhint %}

## Adding Rules

1. From the GAP Admin home page, click "Rules Engine" under the "Travel" section.
2. Click the "+ New Rule" button.
3. Enter a rule name in the "Rule name" text box.
4. Select a rule type from the "Rule type" drop-down list.  Note that once you have saved a rule, the rule type cannot be changed.
5. If you want the rule to operate only during a specific date range, enter this using the "Effective dates" date pickers.
6. Configure the rule conditions under the "Conditions" section.  Click "+ Add Condition" and build the rule conditions as required.  More complex logic can be supported using the "+ Add Group" button.
7. Add actions using the "+ Add Action" button under the "Actions" section.
8. If you want to create the rule in a disabled state, uncheck the "Enable rule" checkbox.

{% embed url="<https://vimeo.com/1177181117?fe=ci&fl=sv&share=copy>" %}

## Disabling Rules

1. From the GAP Admin home page, click "Rules Engine" under the "Travel" section.
2. Toggle the slider in the "Status" column next to the rule you want to delete to the off position.

## Deleting Rules

{% hint style="warning" icon="triangle-exclamation" %}
Deleting a rule is irreversible.  Consdering disabling it instead.
{% endhint %}

1. From the GAP Admin home page, click "Rules Engine" under the "Travel" section.
2. Click the <i class="fa-trash">:trash:</i> (trash can) icon next to the rule you want to delete.
3. Click the "Delete Rule" button to delete the rule.
