v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
enterprise-admin

Update a pre-receive hook

patch/admin/pre-receive-hooks/{pre_receive_hook_id}

Path parameters

pre_receive_hook_idinteger required

The unique identifier of the pre-receive hook.

Request body

namestring

The name of the hook.

scriptstring

The script that the hook runs.

script_repositoryobject

The GitHub repository where the script is kept.

environmentobject

The pre-receive environment where the script is executed.

enforcementstring

The state of enforcement for this hook.

allow_downstream_configurationboolean

Whether enforcement can be overridden at the org or repo level.

Response

Response

idinteger
namestring
enforcementstring
scriptstring
allow_downstream_configurationboolean