Enable or disable a security feature for an organization
POST
/orgs/{org}/{security_product}/{enablement}
Enables or disables the specified security feature for all 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."
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.github.com/orgs///'
Response Response Example
204 - Example 1
{}
Request
Path Params
Responses
🟢204Action started
application/json
Body
🟠422The action could not be taken due to an in progress enablement, or a policy is preventing enablement