---
title: "Update Project Policy"
method: PUT
path: "/v1/projects/{projectId}/policies/{policyId}"
tags: ["Project Policies"]
---

# Update Project Policy

`PUT /v1/projects/{projectId}/policies/{policyId}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/projects/{projectId}/policies/{policyId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/projects/:projectId/policies/:policyId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a custom project policy's name, description, or permissions.

## Path parameters

- `projectId` string, required
- `policyId` string, required

## Request body

- CreateOrUpdatePolicy
  - `name` string, required: Name of the policy
  - `description` string, nullable: Optional description of the policy
  - `permissionIds` string[], required: The ids of the permissions granted by this policy

## Response `200`

- PolicyResponse
  - `success` boolean, required: Indicates if the request was successful
  - `data` object, required
    - `policy` Policy
      - `id` string, required: Unique identifier for the policy
      - `name` string, required: Name of the policy
      - `description` string, nullable: Optional description of the policy
      - `permissions` NamedRef[]: The permissions granted by this policy
        - `id` string, required: Unique identifier
        - `name` string, required: Name

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-31** `173563ada468`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/projects/:projectId/policies/:policyId/put.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
