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

## Changes

> 23 revisions in range; 2 could not be searched.

- **2026-08-23** `7a690d2171a0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/every/apis/every-api/changes/api/organization/rules/:rule_id/patch.md)

---

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