Skip to content

Commit

Permalink
Update webhook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-at-cb committed Oct 18, 2024
1 parent d36239b commit e113392
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cdp/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,16 @@ def list(cls) -> Iterator["Webhook"]:

page = response.next_page

@classmethod
def delete(cls, webhook_id: str) -> None:
"""Delete a webhook by its ID.
Args:
webhook_id (str): The ID of the webhook to delete.
Raises:
Exception: If there's an error deleting the webhook.
"""
Cdp.api_clients.webhooks.delete_webhook(webhook_id)

0 comments on commit e113392

Please sign in to comment.