Skip to content

Create preset

POST
/rules/presets

Creates a new preset with the provided details.

Request Body required

object
id
integer
destination
required
string
45.90.13.24/32
note
string
Example Preset
preset
required
string
Allowed values: allow-cf-web allow-common-dns block-ssh block-rdp block-common-vectors
block-common-vectors
ips
Array<string>
[]

Responses

200

Successful creation of preset

object
data
object
rule_id
integer
12244
success
boolean
true

400

Bad request (e.g., invalid input)

object
success
boolean
message
string