---
title: "Partially Update a VPC"
method: PATCH
path: "/v2/vpcs/{vpc_id}"
tags: ["DigitalOcean-public.v2-new_VPCs"]
---

# Partially Update a VPC

`PATCH /v2/vpcs/{vpc_id}`

To update a subset of information about a VPC, send a PATCH request to
`/v2/vpcs/$VPC_ID`.

## Path parameters

- `vpc_id` string, uuid, required

## Request body

- object
  - `name` string — The name of the VPC. Must be unique and may only contain alphanumeric characters, dashes, and periods.
  - `description` string — A free-form text field for describing the VPC's purpose. It may be a maximum of 255 characters.
  - `default` boolean — A boolean value indicating whether or not the VPC is the default network for the region. All applicable resources are placed into the default VPC network unless otherwise specified during their creation. The `default` field cannot be unset from `true`. If you want to set a new default VPC network, update the `default` field of another VPC network in the same region. The previous network's `default` field will be set to `false` when a new default VPC has been defined.

## Response `200`

The response will be a JSON object with a key called `vpc`. The value of this will be an object that contains the standard attributes associated with a VPC.

- object
  - `vpc` Vpc
    - `name` string — The name of the VPC. Must be unique and may only contain alphanumeric characters, dashes, and periods.
    - `description` string — A free-form text field for describing the VPC's purpose. It may be a maximum of 255 characters.
    - `region` string — The slug identifier for the region where the VPC will be created.
    - `ip_range` string — The range of IP addresses in the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be smaller than `/28` nor larger than `/16`. If no IP range is specified, a `/20` network range is generated that won't conflict with other VPC networks in your account.
    - `default` boolean — A boolean value indicating whether or not the VPC is the default network for the region. All applicable resources are placed into the default VPC network unless otherwise specified during their creation. The `default` field cannot be unset from `true`. If you want to set a new default VPC network, update the `default` field of another VPC network in the same region. The previous network's `default` field will be set to `false` when a new default VPC has been defined.
    - `id` string, uuid — A unique ID that can be used to identify and reference the VPC.
    - `urn` string — The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.
    - `created_at` string, date-time — A time value given in ISO8601 combined date and time format.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/versions/cb3bf9b21459/schema)
