---
title: "Update a Team Member"
method: PATCH
path: "/v1/teams/{teamId}/members/{uid}"
tags: ["teams"]
---

# Update a Team Member

`PATCH /v1/teams/{teamId}/members/{uid}`

Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team.

## Path parameters

- `uid` string, required — The ID of the member.
- `teamId` string, required — The unique team identifier

## Request body

- object
  - `confirmed` true — Accept a user who requested access to the team.
  - `role` string — The role in the team of the member.
  - `teamPermissions` string[] — The team permissions to set for the member. Permissions must be compatible with the team roles assigned to the member.
  - `projects` object[]
    - `projectId` string, required — The ID of the project.
    - `role` 'ADMIN' | 'PROJECT_VIEWER' | 'PROJECT_DEVELOPER' | 'null', nullable, required — The project role of the member that will be added. \"null\" will remove this project level role.
  - `joinedFrom` object
    - `ssoUserId` unknown

## Response `200`

Successfully updated the membership.

- object
  - `id` string, required — ID of the team.

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid. Cannot disconnect SSO from a Team member that does not have a SSO connection. Cannot confirm a member that is already confirmed. Cannot confirm a member that did not request access.
- `401` — The request is not authorized. Team members can only be updated by an owner, or by the authenticated user if they are only disconnecting their SAML connection to the Team.
- `402`
- `403` — You do not have permission to access this resource.
- `404` — The provided user is not part of this team. A user with the specified ID does not exist.
- `409`
- `410`
- `500`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/revisions/61d1ba3f6dac/schema)
