Update a webhook configuration for an app
Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see “Creating a GitHub App.”
You must use a JWT to access this endpoint.
Request Body required
Section titled “ Request Body required ”object
The URL to which the payloads will be delivered.
The media type used to serialize the payloads. Supported values include json and form. The default is form.
If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.
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.
Examples
{ "content_type": "json", "insecure_ssl": "0", "secret": "********", "url": "https://example.com/webhook"}Responses
Section titled “ Responses ”Response
Configuration object of the webhook
object
The URL to which the payloads will be delivered.
The media type used to serialize the payloads. Supported values include json and form. The default is form.
If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.
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.
Examples
{ "content_type": "json", "insecure_ssl": "0", "secret": "********", "url": "https://example.com/webhook"}