Skip to main content

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 string
required
pre_receive_hook_id integer
required

pre_receive_hook_id parameter

Body Params
optional
application/jsonobject
allow_downstream_configuration boolean
optional

Whether repositories can override enforcement.

enforcement string
optional

The state of enforcement for the hook on this repository.

Responses

Response

allow_downstream_configuration boolean
optional
configuration_url string
optional
enforcement string
optional
id integer
optional
name string
optional