ZAP API UI

Component: alertFilter

Action: addAlertFilter

Adds a new alert filter for the context with the given ID.
Output Format
apikey*
Form Method
contextId*The numeric ID of the context for which the filter should be added.
ruleId*The numeric ID of the rule for which the filter should apply.
newLevel*The numeric risk representation ('0 - Informational' through '3 - High') ['-1 - False Positive'].
urlThe URL for which the filter should apply (can be regex).
urlIsRegexA boolean indicating whether or not the URL is a regex.
parameterThe parameter name for which the filter should apply (can be regex).
enabledA boolean indicating whether or not the filter should be enabled.
parameterIsRegexA boolean indicating whether or not the parameter name is a regex.
attackThe attack value for which the filter should apply (can be regex).
attackIsRegexA boolean indicating whether or not the attack value is a regex.
evidenceThe evidence value for which the filter should apply (can be regex).
evidenceIsRegexA boolean indicating whether or not the evidence value is a regex.
methodsThe HTTP methods (comma separated) for which the filter should apply.