Skip to main content
POST
Create an advanced rule

Authorizations

Authorization
string
header
required

Project API access key.

Aptranet-Secret
string
header
required

Current secret for the access key.

Path Parameters

domain_id
integer
required

Body

application/json
name
string
required
Required string length: 1 - 100
Example:

"Block foobar bot"

enabled
boolean
required
action
CustomerRuleAction · object
required
source
string
required
Minimum string length: 1
Example:

"request.rate_limit([], '.*events', 5, 200, [], [], '', 'ip') and not ('mb-web-ui' in request.headers['Cookie'] or 'mb-mobile-ios' in request.headers['Cookie'] or 'session-token' in request.headers['Cookie']) and not request.headers['session']"

description
string
Maximum string length: 100
phase
enum<string> | null
default:access
Available options:
access,
header_filter,
body_filter

Response

Successful response.