---
title: "Update VPC"
method: PUT
path: "/api/v1/vpcs/{id}"
tags: ["Networking"]
---

# Update VPC

`PUT /api/v1/vpcs/{id}`

Update a VPC's name or description. CIDR cannot be changed after creation.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Project-ID` string, uuid, required

## Request body

- UpdateVPCRequest — At least one field is required. CIDR cannot be changed after creation.
  - `name` string — New VPC name.
  - `description` string — VPC description.

## Response `200`

VPC updated

- object
  - `success` boolean
  - `data` VPC — A virtual private cloud (VPC).
    - `id` string, uuid, required — VPC identifier.
    - `account_id` string, uuid — Account this VPC belongs to.
    - `project_id` string, uuid — Project this VPC belongs to.
    - `name` string, required — VPC display name.
    - `cidr` string, required — CIDR block for the VPC.
    - `gateway` string — Gateway IP for the VPC.
    - `dns` string — DNS server IP for the VPC.
    - `status` string, required — VPC lifecycle status.
    - `total_ips` integer — Total addressable IPs in the VPC.
    - `used_ips` integer — IPs currently leased to VMs.
    - `region` 'us-east', required — Region where the VPC lives.
    - `gateway_type` string — Gateway type (e.g. `none`, `nat`).
    - `router_public_ip` string — Public IP of the VPC gateway, if a gateway is enabled.
    - `router_status` string — Gateway router status.
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication required
- `404` — Resource not found

## Changes

- **2026-05-06** `9e13a6e23934` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rafftechnologies/apis/raff-api/changes/api/v1/vpcs/:id/put.md)

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
