---
title: "Changes to Set role permissions"
method: POST
path: "/v2/permissions.setRolePermissions"
---

# Changes to Set role permissions

`POST /v2/permissions.setRolePermissions`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 146 revisions.

- **2026-09-04** `0f45d34665b4`: 1 breaking, 6 info
- **2026-08-11** `1cf63db1c263`: 1 info

## Changes

- **2026-09-04** `0f45d34665b4`: 1 breaking, 6 info
  - the `roleId` request property's maxLength was decreased to `128`
  - added the new optional request property `role`
  - added `subschema #1, subschema #2` to the request body `oneOf` list
  - the request property `roleId` became optional
  - request property `roleId` deprecated
  - the `roleId` request property's minLength was decreased from `3` to `1`
  - removed the pattern `^[a-zA-Z0-9_-]+$` from the request property `roleId`
- **2026-08-11** `1cf63db1c263`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/unkeyed/apis/unkey-api/docs/v2/permissions.setRolePermissions/post.md) - [API](https://skmtc.dev/unkeyed/apis/unkey-api.md) - [Page](https://skmtc.dev/unkeyed/apis/unkey-api/changes/v2/permissions.setRolePermissions/post)
