deleteWebhook method

Future<DeleteWebhookResult> deleteWebhook({
  1. required String webhookId,
})

Deletes a webhook.

May throw BadRequestException. May throw InternalFailureException. May throw LimitExceededException. May throw NotFoundException. May throw UnauthorizedException.

Parameter webhookId : The unique ID for a webhook.

Implementation

Future<DeleteWebhookResult> deleteWebhook({
  required String webhookId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/webhooks/${Uri.encodeComponent(webhookId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteWebhookResult.fromJson(response);
}