v50

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

Update pre-receive hook enforcement for a repository

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

patch/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

pre_receive_hook_idinteger required

The unique identifier of the pre-receive hook.

Request body

enforcement'enabled' | 'disabled' | 'testing'

The state of enforcement for the hook on this repository.

Response

Response

idinteger
namestring
enforcementstring
configuration_urlstring