---
title: "Update user roles"
method: PUT
path: "/users/roles"
---

# Update user roles

`PUT /users/roles`

## Request body

- object
  - `userIds` string[], required — Array of user IDs to be updated
  - `roleIdsToRemove` string[] — Array of role IDs to remove from these users
  - `roleIdsToAdd` string[] — Array of role IDs to add to these users
  - `defaultRoleForSharingId` string — Set the default role to be used for sharing, for these users.

## Response `200`

---

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