---
title: "Set a role's scopes by replacing the entire set with this one"
method: PUT
path: "/orgs/{orgId}/roles/{roleId}/scopeIds"
tags: ["orgs/roles"]
---

# Set a role's scopes by replacing the entire set with this one

`PUT /orgs/{orgId}/roles/{roleId}/scopeIds`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-role:w,o:w,s-o:w<br/><br/>__Endpoint name__: setRoleScopeIds

## Path parameters

- `orgId` integer, required
- `roleId` integer, required

## Request body

- object
  - `scopeIds` integer[], required

## Response `204`

No Content

---

[API](https://skmtc.net/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.net/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/versions/d8a888c114fa/schema)
