Body for creating a webhook.
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Human-readable webhook name. | |
| description | str | Optional free-text note about the webhook purpose. | [optional] |
| events | List[str] | Event types that trigger a delivery. | |
| status | str | Initial delivery state. Only active webhooks receive events. | [optional] [default to 'active'] |
| url | str | HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts). |
from hostinger_mail_api.models.v1_webhooks_create_request import V1WebhooksCreateRequest
# TODO update the JSON string below
json = "{}"
# create an instance of V1WebhooksCreateRequest from a JSON string
v1_webhooks_create_request_instance = V1WebhooksCreateRequest.from_json(json)
# print the JSON string representation of the object
print(V1WebhooksCreateRequest.to_json())
# convert the object into a dict
v1_webhooks_create_request_dict = v1_webhooks_create_request_instance.to_dict()
# create an instance of V1WebhooksCreateRequest from a dict
v1_webhooks_create_request_from_dict = V1WebhooksCreateRequest.from_dict(v1_webhooks_create_request_dict)