Skip to content
Get started

Delete

client.teams.webhookEndpoints.delete(stringwebhookEndpointID, WebhookEndpointDeleteParams { teamId } params, RequestOptionsoptions?): WebhookEndpointDeleteResponse
DELETE/teams/{teamId}/webhook-endpoints/{webhookEndpointId}

Delete a particular webhook endpoint by its Id

ParametersExpand Collapse
webhookEndpointID: string
params: WebhookEndpointDeleteParams { teamId }
teamId: string

The team Id

ReturnsExpand Collapse
WebhookEndpointDeleteResponse = unknown

Delete

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 webhookEndpoint = await client.teams.webhookEndpoints.delete('webhookEndpointId', {
  teamId: 'teamId',
});

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