Policies
Update Policy
Retrieve, update, or delete a single policy by ID
PUT
Update metadata (name and description) of an existing policy. This does not modify the policy versions or content - use the Create Policy Version endpoint to add new content.
This endpoint supports both
PUT (full update) and PATCH (partial update) methods.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | uuid | Yes | UUID of the policy to update |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Yes | UUID of the organization for access control |
Request Body
| Field | Type | Required (PUT) | Required (PATCH) | Description |
|---|---|---|---|---|
name | string | Yes | No | New name for the policy (max 255 characters) |
description | string | No | No | New description for the policy |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Organization ID. This is required for access control. It can be provided via query or request body depending on the endpoint.
Body
application/json
Response
Policy updated successfully.
Serializer for updating policy metadata (name, description)