v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-01-0382859610.0 MB
enterprise-admin

Update a global webhook

Parameters that are not provided will be overwritten with the default value or removed if no default exists.

patch/admin/hooks/{hook_id}

Path parameters

hook_idinteger required

The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.

Request body

eventsstring[]

The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.

activeboolean

Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.

Response

Response

typestring
idinteger
namestring
activeboolean
eventsstring[]
updated_atstring
created_atstring
urlstring
ping_urlstring