Skip to main content
PATCH
/
v1
/
teams
/
{teamId}
/
members
/
{uid}
updateTeamMember
import { Vercel } from "@vercel/sdk";  const vercel = new Vercel({  bearerToken: "<YOUR_BEARER_TOKEN_HERE>", });  async function run() {  const result = await vercel.teams.updateTeamMember({  uid: "ndfasllgPyCtREAqxxdyFKb",  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",  requestBody: {  confirmed: true,  role: "[\"MEMBER\",\"VIEWER\"]",  projects: [  {  projectId: "prj_ndlgr43fadlPyCtREAqxxdyFK",  role: "ADMIN",  },  ],  },  });   console.log(result); }  run();
{  "id": "<string>" }

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

uid
string
required

The ID of the member.

Example:

"ndfasllgPyCtREAqxxdyFKb"

teamId
string
required

The unique team identifier

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Body

application/json
confirmed
boolean

Accept a user who requested access to the team.

Example:

true

role
string
default:MEMBER

The role in the team of the member.

Example:
["MEMBER", "VIEWER"]
projects
object[]
joinedFrom
object

Response

Successfully updated the membership.

id
string
required

ID of the team.

⌘I