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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;type&quot;:&quot;Repository&quot;,&quot;id&quot;:12345678,&quot;name&quot;:&quot;web&quot;,&quot;active&quot;:true,&quot;events&quot;:[&quot;push&quot;,&quot;pull_request&quot;],&quot;config&quot;:{&quot;content_type&quot;:&quot;json&quot;,&quot;insecure_ssl&quot;:&quot;0&quot;,&quot;url&quot;:&quot;https://example.com/webhook&quot;},&quot;updated_at&quot;:&quot;2019-06-03T00:57:16Z&quot;,&quot;created_at&quot;:&quot;2019-06-03T00:57:16Z&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/hooks/12345678&quot;,&quot;test_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test&quot;,&quot;ping_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings&quot;,&quot;last_response&quot;:{&quot;code&quot;:null,&quot;status&quot;:&quot;unused&quot;,&quot;message&quot;:null}}