DELETE
/
v1
/
teams
/
{teamId}
/
members
/
{uid}
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.teams.removeTeamMember({
    uid: "ndlgr43fadlPyCtREAqxxdyFK",
    newDefaultTeamId: "team_nllPyCtREAqxxdyFKbbMDlxd",
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

uid
string
required

The user ID of the member.

Example:

"ndlgr43fadlPyCtREAqxxdyFK"

teamId
string
required

The unique team identifier

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Query Parameters

newDefaultTeamId
string

The ID of the team to set as the new default team for the Northstar user.

Example:

"team_nllPyCtREAqxxdyFKbbMDlxd"

Response

200
application/json
Successfully removed a member of the team.
id
string
required

ID of the team.