DELETE
/
v1
/
teams
/
{teamId}
/
invites
/
{inviteId}
import { Vercel } from "@vercel/sdk";

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

async function run() {
  const result = await vercel.teams.deleteTeamInviteCode({
    inviteId: "2wn2hudbr4chb1ecywo9dvzo7g9sscs6mzcz8htdde0txyom4l",
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  });

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

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

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

inviteId
string
required

The Team invite code ID.

Example:

"2wn2hudbr4chb1ecywo9dvzo7g9sscs6mzcz8htdde0txyom4l"

teamId
string
required

The Team identifier to perform the request on behalf of.

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Response

200
application/json
Successfully deleted Team invite code.

The response is of type object.