v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Firewall Rules

Create a firewall rule

post/waap/v1/domains/{domain_id}/firewall-rules

Path parameters

domain_idinteger required

The domain ID

The domain ID

Request body

namestring required

The name assigned to the rule

descriptionstring

The description assigned to the rule

enabledboolean required

Whether or not the rule is enabled

Example request

{
  "name": "Block foobar bot",
  "action": {
    "block": {
      "action_duration": "12h"
    }
  }
}

Response

Successful Response

namestring required

The name assigned to the rule

descriptionstring

The description assigned to the rule

enabledboolean required

Whether or not the rule is enabled

idinteger required

The unique identifier of the rule

Example response

{
  "name": "Block foobar bot",
  "action": {
    "block": {
      "action_duration": "12h"
    }
  }
}