Sample - GitHub REST API
GET/enterprises/{enterprise}/code-security/configurations/defaults

Get default code security configurations for an enterprise

Lists the default code security configurations for an enterprise.

The authenticated user must be an administrator of the enterprise in order to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the read:enterprise scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
enterprisestringrequired
The slug version of the enterprise name.

1 status code
200Response
default_for_new_reposstringoptional
The visibility of newly created repositories for which the code security configuration will be applied to by default
Allowed:publicprivate_and_internalall
configurationobjectoptional
A code security configuration