---
title: "Update Policy"
method: PATCH
path: "/v1/policies/{policy_id}"
tags: ["Agent Environment", "policies"]
---

# Update Policy

`PATCH /v1/policies/{policy_id}`

Update a policy.

## Path parameters

- `policy_id` string, uuid, required

## Request body

- PolicyUpdate — Request model for updating a policy. All fields are optional.
  - `name` string, nullable
  - `description` string, nullable
  - `category` 'privacy' | 'ethics' | 'security' | 'compliance' | 'operational' | 'brand' | 'custom' — Category of policy document.
  - `status` 'draft' | 'active' | 'archived' — Status of a policy document.
  - `source_text` string, nullable
  - `tags` string[], nullable

## Response `200`

Successful Response

- Policy — Domain model for Policy document.
  - `id` string, uuid, required
  - `team_id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `category` 'privacy' | 'ethics' | 'security' | 'compliance' | 'operational' | 'brand' | 'custom', required — Category of policy document.
  - `status` 'draft' | 'active' | 'archived' — Status of a policy document.
  - `source_text` string, nullable
  - `file_path` string, nullable
  - `file_name` string, nullable
  - `file_type` string, nullable
  - `file_size_bytes` integer, nullable
  - `converted_file_path` string, nullable
  - `is_preset` boolean
  - `preset_source` string, nullable
  - `tags` string[], nullable
  - `created_at` integer, required
  - `updated_at` integer, required
  - `created_by` string, uuid, required

## Other responses

- `422` — Validation Error

---

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