Skip to content
Get started

Delete Invitations

client.teams.deleteInvitations(stringteamID, TeamDeleteInvitationsParams { email } params, RequestOptionsoptions?): TeamDeleteInvitationsResponse
DELETE/teams/{teamId}/invitations

Withdraw a user invitation on the team

ParametersExpand Collapse
teamID: string
params: TeamDeleteInvitationsParams { email }
email: string

The invitation email to withdraw from the team

ReturnsExpand Collapse
TeamDeleteInvitationsResponse = unknown

Delete Invitations

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const response = await client.teams.deleteInvitations('teamId', { email: 'email' });

console.log(response);
{}
Returns Examples
{}