https
PATCH
api.github.com
None
/orgs/example/hooks/42
{'User-Agent': 'PyGithub/Python', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'token private_token_removed', 'Content-Type': 'application/json', 'Content-Length': '60'}
{"name": "web", "config": {"url": "http://foobar.com/hook"}}
200
[('x-content-type-options', 'nosniff'), ('x-github-edge-region', 'fra'), ('x-accepted-github-permissions', 'repository_hooks=write'), ('content-type', 'application/json; charset=utf-8'), ('access-control-allow-origin', '*'), ('x-ratelimit-resource', 'webhook_deliveries'), ('x-ratelimit-limit', '500'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('access-control-expose-headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning'), ('x-ratelimit-remaining', '497'), ('server', 'github.com'), ('x-xss-protection', '0'), ('content-encoding', 'gzip'), ('x-ratelimit-reset', '1796313741'), ('x-frame-options', 'deny'), ('x-github-api-version-selected', '2022-11-28'), ('content-security-policy', "default-src 'none'"), ('x-github-request-id', 'F2E9:1EECC6:712BF3:A8218B:6B119254'), ('github-authentication-token-expiration', '2026-12-25 14:55:45 UTC'), ('x-github-media-type', 'github.v3; format=json'), ('etag', 'W/"8ef4fe33ea0d2eaf2dc957e99ffbb3fc9dd0b28fd2a8ba8c9e4a46b1f32a4932"'), ('date', 'Thu, 03 Dec 2026 16:01:24 GMT'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With'), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('x-ratelimit-used', '3')]
{"type":"Organization","id":42,"name":"web","active":true,"events":["push"],"config":{"insecure_ssl":"0","url":"http://foobar.com/hook","content_type":"form"},"updated_at":"2026-12-03T16:01:24Z","created_at":"2026-12-03T15:34:43Z","url":"https://api.github.com/orgs/example/hooks/42","test_url":"https://api.github.com/orgs/example/hooks/42/test","ping_url":"https://api.github.com/orgs/example/hooks/42/pings","deliveries_url":"https://api.github.com/orgs/example/hooks/42/deliveries","last_response":{"code":403,"status":null,"message":"Invalid HTTP Response: 403"}}
