Update filtering rule
filtering-rules
Update filtering rule
Updates an existing filtering rule. Only provided fields will be updated.
POST
Update filtering rule
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Management API version.
Path Parameters
Body
application/json
ID of the filtering rule
Example:
"tr_rrETjdWcfqI6AFsk"
Name of the filtering rule
Example:
"Block suspicious IPs"
Environment ID
Example:
"ae_rrETjdWcfqI6AFsk"
Expression in expr-lang format that defines the rule condition
Example:
"http.request.ip in cidr('192.168.1.1/32')"
Action to take when the rule matches
Available options:
allow, deny Example:
"deny"
Status of the filtering rule
Available options:
enabled, disabled Error message to return when denying a request
Available options:
Forbidden Example:
"Forbidden"
Placement options for the rule
Response
Updated filtering rule object.