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