List pre-receive hooks for an organization
List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.
GET
/orgs/{org}/pre-receive-hooks- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
Query Parameters
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
- direction stringoptional
One of `asc` (ascending) or `desc` (descending).
- sort stringoptional
The sort order for the response collection.
Responses
application/json array[org-pre-receive-hook object]
Response
items org-pre-receive-hook object
items org-pre-receive-hook object
allow_downstream_configuration boolean
optionalconfiguration_url string
optionalenforcement string
optionalid integer
optionalname string
optional