# Toggle rules **POST /accounts/{account_id}/rules/{rule_id}/toggle** Sets the rule to be turned on or off Available on: ![AuditGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/audit-off.png) ![AlertGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/active-off.png) ![PremiumGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/premium-off.png) ![EliteGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/elite-on.png) ## Servers ## Parameters ### Path parameters - **account_id** (string) ID of an account - **rule_id** (string) Optimization rule ID ### Body: (object) Send `true` to activate a rule - **active** (boolean) Flag to set rule to be active ## Responses ### 200 Successful operation #### Body: (array[object]) - **message** (string) Simple message describing the action taken [Powered by Bump.sh](https://bump.sh)