POST /rules/presets

Create preset

Creates a new preset with the provided details.

Request Body

idinteger
destinationstringRequired
notestring
presetstringRequired
allow-cf-weballow-common-dnsblock-sshblock-rdpblock-common-vectors
ipsarray

Response

200
400
dataobject
rule_idinteger
successboolean

Request

curl -X POST "https://shield.royalehosting.net/api/v2/rules/presets" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "data": {
    "rule_id": 12244
  },
  "success": true
}