API.create_alert_webhook#
- API.create_alert_webhook(name: str, https_url: str, http_method: str, description: str = '', http_headers: Optional[Dict[str, str]] = None, notification_levels: Optional[List[str]] = None, raise_on_status: bool = True) Response #
Create alert webhook.
- Parameters
- namestr
The name of the webhook
- https_urlstr
The url of the webhook
- http_methodstr
The http method of the webhook expected: GET, POST
- descriptionstr, optional
The description of the webhook
- http_headersdict, optional
The http headers of the webhook
- notification_levelslist, optional
The notification levels of the webhook
- raise_on_statusbool
Whether to raise error on bad status code or not
- Returns
- httpx.Response
The response from the server