(self, url: str, name: str, project_id: str, event_types: List[str])
| 990 | |
| 991 | @api_error_handler |
| 992 | async def create_webhook(self, url: str, name: str, project_id: str, event_types: List[str]) -> Dict[str, Any]: |
| 993 | payload = {"url": url, "name": name, "event_types": event_types} |
| 994 | response = await self.async_client.post(f"api/v1/webhooks/projects/{project_id}/", json=payload) |
| 995 | response.raise_for_status() |
| 996 | capture_client_event("async_client.create_webhook", self.sync_client) |
| 997 | return response.json() |
| 998 | |
| 999 | @api_error_handler |
| 1000 | async def update_webhook( |
nothing calls this directly
no test coverage detected