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

# Update Rule

`PATCH /api/organization/rules/{rule_id}`

Supersede a rule while preserving immutable rule history.

## Path parameters

- `rule_id` string, required

## Request body

- UpdateRuleRequest
  - `rule_text` string, nullable
  - `scope` string, nullable
  - `context_entities` RuleContextEntityRequest[], nullable
    - `type` string, required
    - `id` string, required
    - `display` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/revisions/7a690d2171a0/schema)
