PUT/iplists/{type}/{ipornet}

Replace an IP list entry

Replaces the values of an existing IP list entry. Supply the entry's type and ipornet in the path, then provide the entry values to update in the request body. The body can include the entry's mode, protocols, and description.

2 parameters · 7 body fields
typeintegerrequired
The IP list containing the entry: 1 for allow list, 2 for defender, 3 for rate limiter safe list, or 4 for trusted list.
Allowed:1234
ipornetstringrequired
The IP address or network of the entry to replace, in CIDR format.

IP list entry values to replace; the schema does not mark any fields as required.

created_atintegeroptional
creation time as unix timestamp in milliseconds
descriptionstringoptional
optional description
ipornetstringoptional
IP address or network in CIDR format, for example `192.168.1.2/32`, `192.168.0.0/24`, `2001:db8::/32`
modeintegeroptional
IP list modes * `1` - allow * `2` - deny, supported for defender list type only
Allowed:12
protocolsintegeroptional
Defines the protocol the entry applies to. `0` means all the supported protocols, 1 SSH, 2 FTP, 4 WebDAV, 8 HTTP. Protocols can be combined, for example 3 means SSH and FTP
typeintegeroptional
IP List types: * `1` - allow list * `2` - defender * `3` - rate limiter safe list * `4` - trusted list
Allowed:1234
updated_atintegeroptional
last update time as unix timestamp in milliseconds

7 status codes
200Returns an object confirming the operation, with `error` and `message` fields.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
400Returned when a parameter or request value is invalid.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
401Returned when the request is unauthorized.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
403Returned when access to the IP list entry is forbidden.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
404Returned when the specified IP list entry is not found.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
500Returned when an internal server error occurs.
errorstringoptional
error description if any
messagestringoptional
message, can be empty
defaultUnexpected Error
errorstringoptional
error description if any
messagestringoptional
message, can be empty

Error handling

A 400 is returned when a parameter or request value is invalid. A 401 is returned when authentication is missing or invalid. A 403 is returned when access is forbidden. A 404 is returned when the entry is not found. A 500 is returned when an internal server error occurs. The type path parameter must be 1 (allow list), 2 (defender), 3 (rate limiter safe list), or 4 (trusted list). The ipornet path parameter must identify an IP address or network in CIDR format.