---
title: "Update Rule"
method: PATCH
path: "/api/admin/hygiene/rules/{rule_id}"
tags: ["admin-hygiene"]
---

# Update Rule

`PATCH /api/admin/hygiene/rules/{rule_id}`

## Request

- Base URL: `https://mail7.net` (the document declares no server; this is the origin it was published from)
- URL: `https://mail7.net/api/admin/hygiene/rules/{rule_id}`
- Auth: none declared

## Path parameters

- `rule_id` integer, required

## Request body

- RulePatch
  - `action` string, nullable
  - `tag` string, nullable
  - `suggestion` string, nullable
  - `note` string, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mail7/apis/emailvalidator.md) · [All operations](https://skmtc.dev/mail7/apis/emailvalidator/llms.txt) · [OpenAPI document](https://skmtc.dev/mail7/apis/emailvalidator/revisions/86add8fc71d2?raw)
