Custom rule operators and conditions
When sending a custom rule in a request body, you must specify the conditionType
, operator
, value
, and sometimes the fieldOption
. Depending on the conditionType
, there are certain allowed operator
values, and the data type of value
and fieldOption
may change. You must adhere to the specifications of these below, or your rule won’t properly update.
Operator definitions
The following allowed operator
values correspond to operators in the HUMAN platform.
Supported operators by condition type
The conditionType
dictates the field upon which the operator
should act. Each conditionType
has a certain set of supported operator
values with specific value
data types. Be sure to reference the relevant conditionType
for the available operator
values.
User agent (userAgent
)
Examples
Domain (domain
)
Examples
IP address (socketIps
)
Examples
ASN (socketIpASN
)
Examples
Path (path
)
Examples
Query parameter (queryParam
)
The queryParam
condition also requires the fieldOption
parameter, as described below.
Examples
Header (header
)
The header
condition also requires the fieldOption
parameter, as described below.
Examples
HTTP method (httpMethod
)
Examples
Device type (deviceType
)
Examples
Country (country
)
Examples
Custom parameter (customParam
)
The customParam
condition also requires the fieldOption
parameter, as described below.