v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-01-0382859610.0 MB
enterprise-admin

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

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Query parameters

per_pageinteger

The number of results per page (max 100). For more information, see "Using pagination in the REST API."

pageinteger

The page number of the results to fetch. For more information, see "Using pagination in the REST API."

direction'asc' | 'desc'

The direction to sort the results by.

sort'created' | 'updated' | 'name'

The sort order for the response collection.

Response

Response

idinteger
namestring
enforcementstring
configuration_urlstring
allow_downstream_configurationboolean