> ## Documentation Index
> Fetch the complete documentation index at: https://hyperbrowser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update sandbox network policy



## OpenAPI

````yaml openapi.json PUT /api/sandbox/{id}/network
openapi: 3.0.1
info:
  title: Hyperbrowser API
  version: 1.0.0
servers:
  - url: https://api.hyperbrowser.ai
    description: Production server
security: []
paths:
  /api/sandbox/{id}/network:
    put:
      tags:
        - Sandboxes
      summary: Update sandbox network policy
      parameters:
        - name: id
          in: path
          required: true
          description: Sandbox ID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxNetworkPolicyPatch'
      responses:
        '200':
          description: Updated effective network policy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxNetworkUpdateResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SandboxNetworkPolicyPatch:
      type: object
      description: Partial network policy update. Omitted fields keep their current values.
      properties:
        allowInternetAccess:
          type: boolean
        allowOut:
          type: array
          items:
            type: string
          description: Outbound allow rules (IPv4 address, CIDR range, or domain).
        denyOut:
          type: array
          items:
            type: string
          description: Outbound deny rules (IPv4 address or CIDR range).
      additionalProperties: false
    SandboxNetworkUpdateResponse:
      type: object
      properties:
        network:
          $ref: '#/components/schemas/SandboxNetworkPolicy'
      required:
        - network
    SandboxNetworkPolicy:
      type: object
      description: Effective outbound network policy for a sandbox.
      properties:
        allowInternetAccess:
          type: boolean
          default: true
          description: Whether general outbound internet access is allowed.
        allowOut:
          type: array
          items:
            type: string
          description: >-
            Outbound allow rules. Each entry is an IPv4 address, CIDR range, or
            domain.
        denyOut:
          type: array
          items:
            type: string
          description: Outbound deny rules. Each entry is an IPv4 address or CIDR range.
      required:
        - allowInternetAccess
        - allowOut
        - denyOut
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````