---
title: "PATCH /v1alpha1/policies/{policyId}"
method: PATCH
path: "/v1alpha1/policies/{policyId}"
tags: ["PolicyService"]
---

# PATCH /v1alpha1/policies/{policyId}

`PATCH /v1alpha1/policies/{policyId}`

Update a Policy.

## Path parameters

- `policyId` string, required

## Request body

- UpdatePolicyRequest
  - `policyId` string — Policy Id to update.
  - `name` string — A human-readable name for the Policy.
  - `description` string — A human-readable description for the Policy.
  - `assignedTo` string — The requester application that this policy applies to.

## Response `200`

OK

- Policy — Identity Service Policy.
  - `id` string — A unique identifier for the Policy.
  - `name` string, required — A human-readable name for the Policy.
  - `description` string — A human-readable description for the Policy.
  - `assignedTo` string, required — The requester application that this Policy applies to.
  - `rules` Rule[], required — All the rules that apply to this Policy.
    - `id` string — A unique identifier for the Rule.
    - `name` string, required — A human-readable name for the Rule.
    - `description` string — A human-readable description for the Rule.
    - `policyId` string
    - `tasks` Task[], required — The tasks that this Rule applies to.
      - `id` string — A unique identifier for the Task.
      - `name` string — A human-readable name for the Task.
      - `description` string — A human-readable description for the Task.
      - `appId` string — An application ID for the Task.
      - `toolName` string — A tool name for the Task.
    - `action` 'RULE_ACTION_UNSPECIFIED' | 'RULE_ACTION_ALLOW' | 'RULE_ACTION_DENY', enum, required — The action applied for the rule when calling the specified tasks
    - `needsApproval` boolean, required — Need User Approval for this Rule.
    - `createdAt` string, date-time — CreatedAt records the timestamp of when the Rule was initially created
  - `createdAt` string, date-time — CreatedAt records the timestamp of when the Policy was initially created

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/agntcy/apis/agntcy-identity-service-api.md) · [All operations](https://skmtc.net/agntcy/apis/agntcy-identity-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agntcy/agntcy-identity-service-api/revisions/1dc8f8328648/schema)
