v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-11-288093493.9 MB
enterprise-admin

Update pre-receive hook enforcement for an organization

For pre-receive hooks which are allowed to be configured at the org level, you can set enforcement and allow_downstream_configuration

patch/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}

Path parameters

orgstring required

The organization name. The name is not case sensitive.

pre_receive_hook_idinteger required

The unique identifier of the pre-receive hook.

Request body

enforcementstring

The state of enforcement for the hook on this repository.

allow_downstream_configurationboolean

Whether repositories can override enforcement.

Response

Response

idinteger
namestring
enforcementstring
configuration_urlstring
allow_downstream_configurationboolean