---
title: "PATCH Update a policy"
description: "Updates an existing policy by its ID for the authenticated organization."
last_updated: "2026-05-06T07:33:50.979745+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/policies/policiescontroller-updatepolicy"
---

<APIEndpoint
  method={"PATCH"}
  path={"/policies/:id"}
  summary={"Update a policy"}
  description={"Updates an existing policy by its ID for the authenticated organization."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"id","in":"path","required":true,"description":"ID of the policy to update.","schema":{"type":"string"}},{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}}]} />

## Request Body

The policy data to update.

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Policy updated successfully."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad request."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Policy not found."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"PATCH"}
  path={"/policies/:id"}
  parameters={[{"name":"id","in":"path","required":true,"description":"ID of the policy to update.","schema":{"type":"string"}},{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"The policy data to update.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
