Skip to main content
PATCH
Change a firewall rule

Authorizations

Authorization
string
header
required

Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.

Path Parameters

id
string
required

Environment ID, or current for the environment the request acts in

ruleId
string<uuid>
required

Body

application/json

Fields left out stay as they are; sources replaces the list. A new port_from without port_to makes a single port.

protocol
enum<string>
Available options:
tcp,
udp
port_from
integer
Required range: 1 <= x <= 65535
port_to
integer

End of a range; defaults to port_from.

Required range: 1 <= x <= 65535
sources
string[]

IP addresses and CIDR ranges, IPv4 or IPv6, or anywhere. Stored normalised: a single address becomes /32 or /128; anywhere is ["0.0.0.0/0", "::/0"].

Required array length: 1 - 20 elements
description
string | null
Maximum string length: 100

Response

Rule updated.

data
object
required