---
title: "Update permission"
method: PATCH
path: "/resources/permissions/v1/{permissionId}"
tags: ["Permissions"]
---

# Update permission

`PATCH /resources/permissions/v1/{permissionId}`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/permissions/v1/{permissionId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/permissions/v1/:permissionId/patch.ts> (a function with typed inputs; its response is checked against the schema)

This route updates an existing permission. Add the permission ID as a path parameter to the route url to specify which permission you are updating. Send the updated information about the permission in the PATCH body. Note that you do not update roles for the permission here. Use the associate permission to roles route to do that.

## Path parameters

- `permissionId` string, required

## Request body

- UpdatePermissionRequest
  - `key` string
  - `name` string
  - `description` string
  - `categoryId` string

## Response `200`

- PermissionResponse
  - `id` string, required
  - `key` string, required
  - `name` string, required
  - `description` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `roleIds` string[], required
  - `categoryId` string, required
  - `fePermission` boolean, required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
