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

---

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