---
title: "Update Account Rule"
method: PUT
path: "/api/admin/account-rules/{rule_id}"
tags: ["Admin"]
---

# Update Account Rule

`PUT /api/admin/account-rules/{rule_id}`

Edit an account rule's reason and optionally its clause (Admin only).

## Path parameters

- `rule_id` string, required

## Request body

- UpdateAccountRuleRequest
  - `reason` string, nullable — Updated reason
  - `label` string, nullable — Updated display name
  - `match_type` string, nullable — Updated clause type
  - `match_value` string, nullable — Updated clause value

## Response `200`

Successful Response

- MessageResponse
  - `success` boolean
  - `message` string, required

## Other responses

- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/compresr/apis/compresr-platform-api.md) · [All operations](https://skmtc.net/compresr/apis/compresr-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/compresr/compresr-platform-api/versions/93ee959dfa51/schema)
