v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01151216390.1 KB
network-policies

Update a NetworkPolicy.

Update an existing NetworkPolicy. All fields are optional - null fields preserve existing values, provided fields replace entirely.

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'].

allow_agent_gatewayboolean nullable

If true, allows devbox egress to the agent gateway.

allow_mcp_gatewayboolean nullable

If true, allows devbox egress to the MCP hub.

allow_runloop_mirrorsboolean nullable

If true, allows devbox egress to Runloop's package/image registry mirrors. Implicitly allowed when allow_all is true.

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).