v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
security-policy

Update Security Policy

Update the security policy of an organization.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • security-policy:update
post/orgs/{org_slug}/settings/security-policy

Path parameters

org_slugstring required

The slug of the organization

Query parameters

custom_rules_onlyboolean

Return only customized security policy rules in the response.

Request body

policyDefault'default' | 'low' | 'medium' | 'high'

The default security policy for the organization

resetPolicyRulesboolean

Reset the policy rules to the default. When set to true, do not include any policyRules updates.

Response

Updated repository details

securityPolicyDefault'default' | 'low' | 'medium' | 'high'

The default security policy for the organization