network-policies

Update a NetworkPolicy.

Update an existing NetworkPolicy. All fields are optional.

post/v1/network-policies/{id}

Path parameters

idstring required

The unique identifier of the NetworkPolicy to update.

Request body

namestring nullable

Updated human-readable name for the NetworkPolicy.

descriptionstring nullable

Updated description for the NetworkPolicy.

allow_allboolean nullable

If true, all egress traffic is allowed (ALLOW_ALL policy).

allow_devbox_to_devboxboolean nullable

If true, allows traffic between the account's own devboxes via tunnels.

allowed_hostnamesstring[] nullable

Updated DNS-based allow list with wildcard support. Examples: ['github.com', '*.npmjs.org'].

Response

NetworkPolicy updated successfully.

idstring required

The unique identifier of the NetworkPolicy.

namestring required

The human-readable name of the NetworkPolicy. Unique per account.

descriptionstring nullable

Optional description of the NetworkPolicy.

create_time_msinteger required

The creation time of the NetworkPolicy (Unix timestamp in milliseconds).

update_time_msinteger required

Last update time of the NetworkPolicy (Unix timestamp in milliseconds).

Changes