Skip to main content
POST
Create a firewall 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
FirewallRuleAction · object
required
conditions
FirewallRuleCondition · object[]
required
Required array length: 1 element
description
string
Maximum string length: 100

Response

Successful response.