network-policies

Update a NetworkPolicy.

Changed on

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

post/v1/network-policies/{id}

Request

  • Base URL: https://api.runloop.ai
  • URL: https://api.runloop.ai/v1/network-policies/{id}
  • Auth: HTTP bearer

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

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable