def update(self, webhook: WebhookModel) -> WebhookModel:
        """
        Update a webhook

        Args:
            webhook (WebhookModel): Webhook to update

        Returns:
            WebhookModel: Updated webhook

        """
        response = self.http_client.patch(url=f"{self.url_stub}/{webhook.id}", json=webhook.model_dump())
        response.raise_for_status()
        response_json = response.json()
        webhook = self._model_from_json(json_data=response_json)
        self._log_message(message=f"Updated webhook with id {webhook.id}")
        return webhook

        Update a webhook

        Args:
            webhook (WebhookModel): Webhook to update

        Returns:
            WebhookModel: Updated webhook

        
argilla/src/argilla/_api/_webhooks.py