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}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- pre_receive_hook_id integerrequired
pre_receive_hook_id parameter
Body Params
optionalapplication/jsonobject
enforcement string
optionalThe state of enforcement for the hook on this repository.
Responses
application/json repository-pre-receive-hook object
Response
configuration_url string
optionalenforcement string
optionalid integer
optionalname string
optional