Create a global webhook
/admin/hooks- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Header Parameters
- accept stringrequired
This API is under preview and subject to change.
Body Params
requiredDetermines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
config objectrequiredKey/value pairs to provide settings for this webhook.
Key/value pairs to provide settings for this webhook.
The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/[email protected]/webhooks/event-payloads/#delivery-headers) header.
The URL to which the payloads will be delivered.
The [events](https://docs.github.com/[email protected]/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.
Must be passed as "web".
Responses
Response