Update a repository webhook
PATCH {{baseUrl}}/repos/:owner/:repo/hooks/:hook_id
Request Body
{"config"=>{"url"=>"<string>", "content_type"=>"<string>", "secret"=>"<string>", "insecure_ssl"=>"<string>", "address"=>"<string>", "room"=>"<string>"}, "events"=>["push"], "add_events"=>["<string>", "<string>"], "remove_events"=>["<string>", "<string>"], "active"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"type":"Repository","id":12345678,"name":"web","active":true,"events":["push","pull_request"],"config":{"content_type":"json","insecure_ssl":"0","url":"https://example.com/webhook"},"updated_at":"2019-06-03T00:57:16Z","created_at":"2019-06-03T00:57:16Z","url":"https://api.github.com/repos/octocat/Hello-World/hooks/12345678","test_url":"https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test","ping_url":"https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings","last_response":{"code":null,"status":"unused","message":null}}