---
title: "Modify the role of users in a team within a workspace"
method: PATCH
path: "/workspaces/{slug}/teams/{teamId}/members"
---

# Modify the role of users in a team within a workspace

`PATCH /workspaces/{slug}/teams/{teamId}/members`

Modify the role of users in a team. The users must already be a member of the team, and only team admins, workspace managers, or workspace admins can modify users.

## Path parameters

- `slug` string, required
- `teamId` string, required

## Request body

- object
  - `memberIds` integer[], required — IDs of the users to modify in the team.
  - `role` 'manager' | 'member' — Role to assign to the user in the team.

## Response `default`

Successful

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
