v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 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. For more information, see "Managing security managers in your organization."

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

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

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