---
title: "Create Rule"
method: POST
path: "/api/admin/hygiene/rules"
tags: ["admin-hygiene"]
---

# Create Rule

`POST /api/admin/hygiene/rules`

## 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`
- Auth: none declared

## Request body

- RuleIn
  - `kind` string
  - `value` string, required
  - `action` string
  - `tag` string
  - `suggestion` string, nullable
  - `note` string, nullable
  - `enabled` boolean

## 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)
