v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-11-288093493.9 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).

pageinteger

Page number of the results to fetch.

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