deleteWebhook method

Future<ClientResponse<void, Errors>> deleteWebhook(
  1. String webhookId
)

Deletes the webhook for the given Id.

@param {String} webhookId The Id of the webhook to delete. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<void, Errors>> deleteWebhook(String webhookId) {
  return _start<void, Errors>()
      .withUri('/api/webhook')
      .withUriSegment(webhookId)
      .withMethod('DELETE')
      .go();
}