Skip to main content

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

pre_receive_hook_id parameter

Body Params
optional
application/jsonobject
enforcement string
optional

The state of enforcement for the hook on this repository.

Responses

Response

configuration_url string
optional
enforcement string
optional
id integer
optional
name string
optional