Security policiesWAF rules: AI rulesUpdate AI rules statusCopy Pageput https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/ai-rules/statusAll products Enable or disable all AI rules for the security policy.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 enrollment and enablement status of AI rules for the security policy.aiRuleStatusstringenumrequiredWhether AI rules are active for the policy, either ENABLED, DISABLED, or NOT_ENROLLED.ENABLEDDISABLEDNOT_ENROLLEDAllowed:ENABLEDDISABLEDNOT_ENROLLEDHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated AI rules status. 400Invalid. Client error, such as invalid or malformed input. 403Forbidden. You don't have permission to write to this resource. 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 1 day ago Get AI rules statusGet an AI rule's actionDid this page help you?YesNo