Remove a Team Member
DEL
https://api.vercel.com/v1/teams/{teamId}/members/{uid}Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team. Organization-directory-managed access must be removed through the organization's identity provider; local removal returns
organization_directory_managed. Directory Sync members can be removed when their directory email is absent or does not match the user's primary or verified secondary emails. Removing or leaving is refused when it would leave the Team's organization without an organization admin.https://api.vercel.com/v1/teams/{teamId}/members/{uid}
const response = await fetch('https://api.vercel.com/v1/teams/teamId/members/uid?newDefaultTeamId=string', { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);Response
{ "id": "icfg_1234567890"}AuthorizationbearerToken
Default authentication mechanism
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
Not authorized to update the team.
404Error
409Error
410Error
503Error