v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
enterprise-admin

Update code security and analysis features for an enterprise

Updates the settings for advanced security, secret scanning, and push protection for new repositories in an enterprise.

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

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

patch/enterprises/{enterprise}/code_security_and_analysis

Path parameters

enterprisestring required

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Request body

dependabot_alerts_enabled_for_new_repositoriesboolean

Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "About Dependabot alerts."

Response

Action started