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"
}