active
state and events
, use "Update an organization webhook ."admin:org_hook
scope, and GitHub Apps must have the organization_hooks:write
permission.curl --location --request PATCH 'https://api.github.com/orgs//hooks//config' \
--header 'Content-Type: application/json' \
--data-raw '{
"content_type": "json",
"insecure_ssl": "0",
"secret": "********",
"url": "http://example.com/webhook"
}'
{
"content_type": "\"json\"",
"insecure_ssl": "\"0\"",
"secret": "\"********\"",
"url": "https://example.com/webhook"
}
json
and form
. The default is form
.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.secret
will be used as the key
to generate the HMAC hex digest value for delivery signature headers.json
and form
. The default is form
.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.secret
will be used as the key
to generate the HMAC hex digest value for delivery signature headers.