active
state and events
, use "Update a repository webhook."write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.curl --location --request PATCH 'https://api.github.com/repos///hooks//config' \
--header 'Content-Type: application/json' \
--data-raw '{
"content_type": "json",
"url": "https://example.com/webhook"
}'
{
"content_type": "\"json\"",
"insecure_ssl": "\"0\"",
"secret": "\"********\"",
"url": "https://example.com/webhook"
}