---
title: "Update a Private Network"
method: PUT
path: "/private-network/{id}"
tags: ["private-network"]
---

# Update a Private Network

`PUT /private-network/{id}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/private-network/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/private-network/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string: Private Network name
  - `description` string: Private Network description
  - `netmask` string, ipv4: Private Network netmask
  - `start-ip` string, ipv4: Private Network start IP address
  - `end-ip` string, ipv4: Private Network end IP address
  - `labels` Labels
  - `options` PrivateNetworkOptions: Private Network DHCP Options
    - `routers` string[]: Routers
    - `dns-servers` string[]: DNS Servers
    - `ntp-servers` string[]: NTP Servers
    - `domain-search` string[]: Domain search list, limited to 255 octets

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2024-09-18** `eae1143f1c63`: 1 info
  - added the new optional request property `options`
- **2023-02-03** `6e9809fd1444`: 1 breaking, 2 warning
  - the `name` request property's minLength was increased from `0` to `1`
  - the `description` request property's maxLength was set to `255`
  - the `name` request property's maxLength was set to `255`

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/private-network/:id/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
