Modify a security policy's rule setCopy Pagepatch https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/web-application-firewall/rulesetAll products Modify the security policy's rule set including its rule and attack group details.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.policyIdstringrequiredA unique identifier for a security policy.Query ParamsaccountSwitchKeystringFor customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.Body ParamsThe PATCH request JSON supports updates to rule and attack group actions and condition exceptions.attackGroupsarray of objectslength ≥ 0Attack groups in the security policy with their actions and condition exceptions.attackGroupsADD objectrulesarray of objectslength ≥ 0The rules in security policy, including the rules' names, actions, and condition exceptions.rulesADD objectHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated security policy ruleset information. 400Invalid. Client error, such as invalid or malformed input. 404Not found. The security policy doesn't exist, doesn't carry application layer controls, or no rule with this ID is available for use in this policy. 500Internal server error. Something went wrong on our side. Try again in a few minutes or contact support if the error persists.Updated about 2 months ago