---
title: "Revise a rule"
method: PATCH
path: "/v1/rules/{lineageId}"
tags: ["Rules"]
---

# Revise a rule

`PATCH /v1/rules/{lineageId}`

## Request

- Base URL: `https://api.ironfang.com/audit`
- URL: `https://api.ironfang.com/audit/v1/rules/{lineageId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Writes the next version of the rule and makes it active. Nothing about the previous revision changes, so evidence captured before the edit still names the wording that produced it. Omitted fields carry forward from the active revision.

## Request body

- object
  - `configuration` object
  - `description` string
  - `name` string
  - `rule_type` string
  - `severity` 'info' | 'warning' | 'failure' | 'critical'

## Response `200`

The new active revision

## Other responses

- `404`: Problem response
- `409`: Problem response
- `422`: Problem response

---

[API](https://skmtc.dev/ironfang/apis/ironfang-audit-api.md) · [All operations](https://skmtc.dev/ironfang/apis/ironfang-audit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ironfang/apis/ironfang-audit-api/revisions/7430deff2cbd?raw)
