---
title: "PATCH /v1/projects/{projectId}/policies/{policyId}"
method: PATCH
path: "/v1/projects/{projectId}/policies/{policyId}"
tags: ["Access"]
---

# PATCH /v1/projects/{projectId}/policies/{policyId}

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

## Path parameters

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

## Request body

- GoliothPolicyUpdate
  - `addRoles` string[]
  - `addTags` string[]
  - `removeRoles` string[]
  - `removeTags` string[]
  - `roles` string[]
  - `tagIds` string[]

## Response `200`

A successful response.

- GoliothUpdatePolicyResponse
  - `data` GoliothPolicy
    - `conditionals` GoliothConditionalMap
      - `tags` string[]
    - `createdAt` string, date-time
    - `id` string
    - `resourceId` string
    - `resourceType` string
    - `roles` string[]
    - `updatedAt` string, date-time
    - `userId` string

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/golioth/apis/golioth-api.md) · [All operations](https://skmtc.dev/golioth/apis/golioth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/golioth/golioth-api/revisions/47c98ae69a55/schema)
