Security policiesWAF rules: AI rulesUpdate an AI rule's actionCopy Pageput https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/ai-rules/{ruleId}/versions/{ruleVersionId}/actionAll products Update the action for an AI rule.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.policyIdstringrequiredA unique identifier for a security policy.ruleIdintegerrequiredA unique identifier for rule.ruleVersionIdintegerrequiredUniquely identifies each version of an AI rule.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 action for an AI rule.actionstringenumrequiredThe action to take for an AI rule, either alert, deny, or none. If the action is none, the rule is inactive in the policy.alertdenynoneAllowed:alertdenynoneHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated the AI rule's action. 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 an AI rule's actionChallenge actionsDid this page help you?YesNo