curl --location --request PATCH 'https://service1.exmaple.com/admin/hooks/' \
--header 'Content-Type: application/json' \
--data '{
"events": [
"organization"
],
"config": {
"url": "https://example.com/webhook"
}
}'{
"type": "Global",
"id": 1,
"name": "web",
"active": true,
"events": [
"organization"
],
"config": {
"url": "https://example.com",
"content_type": "form",
"insecure_ssl": "0"
},
"updated_at": "2017-12-07T00:14:59Z",
"created_at": "2017-12-07T00:14:59Z",
"url": "https://api.github.com/admin/hooks/1",
"ping_url": "https://api.github.com/admin/hooks/1/pings"
}