Skip to main content
Update network configuration

Authorizations

Authorization
string
header
default:Bearer {API_ACCESS_TOKEN}
required

CoreWeave API access token sent as a bearer token.

Path Parameters

networkConfigId
string
required

Query Parameters

updateMask
string<field-mask>

Comma-separated JSON paths: spec.egress, spec.denyEgress, spec.ingress, spec.denyIngress, and spec.dnsEgress. Omission selects populated mutable fields; an explicitly empty mask is a no-op. To replace all mutable fields in JSON, select all five paths. Selected fields omitted from the body reset to their defaults. The wildcard * is supported only over binary protobuf (gRPC or Connect protobuf), not JSON Connect or REST requests.

Body

application/json

NetworkConfig is the desired network document a sandbox binds 1:1.

spec
object
required

NetworkOptions declares the sandbox's network intent beyond port exposure.

networkConfigId
string

Immutable, organization-unique ID matching ^[a-z][a-z0-9-]{2,62}$. Choose the ID on CreateNetworkConfig, without the reserved nc- prefix. The platform assigns an nc- ID when it creates a configuration automatically for a sandbox.

etag
string

Optional concurrency token. Send the last returned value in the NetworkConfig update body to protect a desired-state write. A mismatch on that write returns ABORTED with CWSANDBOX_ETAG_MISMATCH. A bound update whose resulting spec already matches stored desired state reapplies enforcement without checking the token. Omitting the token permits the last persisted desired-state write to win. The token does not make enforcement atomic.

Response

OK

NetworkConfig is the desired network document a sandbox binds 1:1.

spec
object
required

NetworkOptions declares the sandbox's network intent beyond port exposure.

networkConfigId
string

Immutable, organization-unique ID matching ^[a-z][a-z0-9-]{2,62}$. Choose the ID on CreateNetworkConfig, without the reserved nc- prefix. The platform assigns an nc- ID when it creates a configuration automatically for a sandbox.

status
object
etag
string

Optional concurrency token. Send the last returned value in the NetworkConfig update body to protect a desired-state write. A mismatch on that write returns ABORTED with CWSANDBOX_ETAG_MISMATCH. A bound update whose resulting spec already matches stored desired state reapplies enforcement without checking the token. Omitting the token permits the last persisted desired-state write to win. The token does not make enforcement atomic.