security-policy

Update Security Policy

Changed on

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

Request

  • Base URL
    https://api.socket.dev/v0
  • URL
    https://api.socket.dev/v0/orgs/{org_slug}/settings/security-policy
  • Auth
    • HTTP bearer
    • or HTTP basic

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

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status