---
title: "Update Policy Rule"
method: PATCH
path: "/v1/policies/{rule_id}"
tags: ["v1", "protected", "policies"]
---

# Update Policy Rule

`PATCH /v1/policies/{rule_id}`

Partially update a policy rule.

## Path parameters

- `rule_id` string, uuid, required

## Request body

- PolicyRuleUpdateRequest — Request body for partially updating a policy rule.
  - `condition` string, nullable
  - `effect` 'allow' | 'deny' | 'cap' | 'approval' | 'safety' | 'egress' — What a rule does when it applies.
  - `enabled` boolean, nullable
  - `params` object, nullable
  - `priority` integer, nullable
  - `subject_id` string, nullable
  - `subject_type` 'workspace' | 'agent' | 'user' | 'group' — The kind of subject a rule binds to.
  - `target` string, nullable

## Response `200`

Successful Response

- PolicyRuleResponse — Serialized policy rule returned to clients.
  - `condition` string, nullable
  - `effect` 'allow' | 'deny' | 'cap' | 'approval' | 'safety' | 'egress', required — What a rule does when it applies.
  - `enabled` boolean, required
  - `id` string, required
  - `params` object, required
  - `priority` integer, required
  - `subject_id` string, required
  - `subject_type` 'workspace' | 'agent' | 'user' | 'group', required — The kind of subject a rule binds to.
  - `target` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-08** `8940d7f77282` — 1 warning, 1 info
  - added the new `egress` enum value to the `effect` response property for the response status `200`
  - added the new `egress` enum value to the request property `effect/anyOf[subschema #1: PolicyEffect]/`
- **2026-06-18** `dad98bb65260` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/policies/:rule_id/patch.md)

---

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