List enterprise custom patterns
Changed onLists secret scanning custom patterns for an enterprise.
Personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/enterprises/{enterprise}/secret-scanning/custom-patterns
- Auth: none declared
Path parameters
The slug version of the enterprise name.
Query parameters
Filter custom patterns by state. When absent, returns patterns in all states.
Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status.
The property to sort the results by.
The direction to sort the results by.
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
Response
Response
Changes
- warning
deleted the
queryrequest parameterpage - warning
deleted the
queryrequest parameterper_page
- warning
- info
added the new optional
queryrequest parameterafter - info
added the new optional
queryrequest parameterbefore
- info