enterprise-admin

Enable or disable a security feature

Enables or disables the specified security feature for all repositories in an enterprise.

To use this endpoint, you must be an administrator of the enterprise, and you must use an access token with the admin:enterprise scope.

post/enterprises/{enterprise}/{security_product}/{enablement}

Path parameters

enterprisestring required

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

security_product'advanced_security' | 'secret_scanning' | 'secret_scanning_push_protection' required

The security feature to enable or disable.

enablement'enable_all' | 'disable_all' required

The action to take.

enable_all means to enable the specified security feature for all repositories in the enterprise. disable_all means to disable the specified security feature for all repositories in the enterprise.

Response

Action started

Changes