v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-01-0382859610.0 MB
orgs

Enable or disable a security feature for an organization

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

To use this endpoint, you must be an organization owner or be member of a team with the security manager role. A token with the 'write:org' scope is also required.

GitHub Apps must have the organization_administration:write permission to use this endpoint.

For more information, see "Managing security managers in your organization."

post/orgs/{org}/{security_product}/{enablement}

Path parameters

orgstring required

The organization name. The name is not case sensitive.

security_product'dependency_graph' | 'dependabot_alerts' | 'dependabot_security_updates' | '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 organization. disable_all means to disable the specified security feature for all repositories in the organization.

Response

Action started