Create custom rule

Configure a custom allow or deny list rule.

Log in to see full request history
Body Params
string
integer
Defaults to the value corresponding to the lowest priority rule.

API returns rules between 0 (the highest priority) and the number of rules minus 1 (the lowest priority). This corresponds to the console's rules between 1 (the highest priority) and the number of rules. For example, if there are 10 rules, then in the API, the 0th rule is the highest priority while the 9th rule is the lowest priority. This 0th rule corresponds to the 1st rule in the console. Based on this example, the default value would be 9.

string
required
string
conditions
object
required

A nested object with exactly two levels.

actions
array of strings
required
actions*
string
required
Responses

400

The request was invalid or did not have the proper authentication.

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json