---
title: "Replace rule set rules"
method: PUT
path: "/permission-rule-sets/{rule_set_id}/rules"
tags: ["Permission Rule Sets"]
---

# Replace rule set rules

`PUT /permission-rule-sets/{rule_set_id}/rules`

Replace the set's full ordered rule list (idempotent PUT).

Every binding pointing at the set picks the new list up at once — the
single-place edit rule grouping exists for.

## Path parameters

- `rule_set_id` string, required

## Request body

- JenticOneControlWebSchemasPermissionRulesPermissionRuleSchema[]
  - `effect` 'allow' | 'deny', required — Whether this rule allows or denies the matched request.
  - `match_mode` 'regex' | 'prefix' | 'exact' — How `path` is interpreted: `regex` (full-match), `prefix` (string prefix), or `exact` (equality). Defaults to `regex` for backwards compatibility.
  - `methods` string[], nullable — HTTP methods to match (case-insensitive). None matches all.
  - `operations` string[], nullable — OpenAPI operation IDs to match. None matches all operations.
  - `path` string, nullable — Path pattern to match. Interpreted per `match_mode`: `regex` uses full-match semantics (the pattern must describe the whole path); `prefix` and `exact` are literal. None matches all paths.

## Response `200`

Successful Response

- PermissionRuleListResponse — List of permission rules.
  - `data` PermissionRuleReadSchema[], required
    - `_comment` string, nullable
    - `_system` boolean
    - `effect` 'allow' | 'deny', required
    - `match_mode` 'regex' | 'prefix' | 'exact'
    - `methods` string[], nullable
    - `operations` string[], nullable
    - `path` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-09-14** `d56864df177c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/jentic/apis/jentic-control-plane-api/changes/permission-rule-sets/:rule_set_id/rules/put.md)

---

[API](https://skmtc.dev/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.dev/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jentic/apis/jentic-control-plane-api/revisions/e4688b93dfc7?raw)
