---
title: "Update VPC Prefix"
method: PATCH
path: "/v2/org/{org}/nico/vpc-prefix/{vpcPrefixId}"
tags: ["VPC Prefix"]
---

# Update VPC Prefix

`PATCH /v2/org/{org}/nico/vpc-prefix/{vpcPrefixId}`

Update an existing VPC Prefix

Org must have a Tenant entity. User must have authorization role with `TENANT_ADMIN` suffix.

## Request body

- VpcPrefixUpdateRequest — Request data for updating a VPC Prefix
  - `name` string, required — Name of the VPCPrefix

## Response `200`

OK

- VpcPrefix — VPC Prefixes are network grouping constructs for baremetal machines.
  - `id` string, uuid — Unique UUID v4 identifier for the VPCPrefix
  - `name` string — Name of the VPC Prefix
  - `siteId` string, uuid — ID of the Site the VPC Prefix belongs to
  - `vpcId` string, uuid — ID of the VPC the VPC Prefix belongs to
  - `ipBlockId` string, uuid, nullable — ID of the IP Block that contains the prefix of the VPC Prefix
  - `prefix` string, nullable — The network prefix including prefix length in CIDR notation
  - `prefixLength` integer — Length of the prefix. Valid range is 8 to 31, and max usable value depends on prefix length of parent IP Block.
  - `status` 'Provisioning' | 'Ready' | 'Deleting' | 'Deleted' | 'Error' — Status values for VPC Prefix objects
  - `usageStats` IpBlockUsageStats — Usage statistics for an IP Block, VPC Prefix or Subnet
    - `availableIPs` integer — Total number of IP addresses in the block (acquired and unused)
    - `acquiredIPs` integer — Number of individual IP addresses acquired from the block
    - `availablePrefixes` string[] — Example prefixes available to acquire
    - `availableSmallestPrefixes` integer — Total number of /30 prefixes that can still be acquired from this block (only reduced if prefixes are acquired, not reduced by acquired IPs)
    - `acquiredPrefixes` integer — Total number of prefixes (of any size) acquired from this block
  - `statusHistory` StatusDetail[] — Details of 20 most recent status changes
    - `status` string — State of the associated entity at a particular time
    - `message` string, nullable — Description of the state and cause/remedy in case of error
    - `created` string, date-time — Date/time when the associated entity assumed the status
    - `updated` string, date-time — Date/time when the associated entity was last observed with this status
  - `created` string, date-time — Date and time when the VPC Prefix was created
  - `updated` string, date-time — Date and time when the VPC Prefix was updated

## Other responses

- `400` — Error response when request data cannot be validated
- `403` — Error response when user is not authorized to call an endpoint or retrieve/modify objects

## Changes

- **2026-08-19** `484497856a94` — 4 breaking
  - the `usageStats/acquiredIPs` response's property type/format changed from `integer`/`int64` to `integer`/`uint64` for status `200`
  - the `usageStats/acquiredPrefixes` response's property type/format changed from `integer`/`int64` to `integer`/`uint64` for status `200`
  - the `usageStats/availableIPs` response's property type/format changed from `integer`/`int64` to `integer`/`uint64` for status `200`
  - the `usageStats/availableSmallestPrefixes` response's property type/format changed from `integer`/`int64` to `integer`/`uint64` for status `200`
- **2026-06-12** `510d92330e3d` — 2 warning
  - added the new `Deleted` enum value to the `status` response property for the response status `200`
  - added the new `Provisioning` enum value to the `status` response property for the response status `200`
- **2026-06-11** `bc7cf73fe604` — 1 warning
  - removed the optional property `tenantId` from the response with the `200` status
- **2026-06-02** `b078e63260c1` — 1 info
  - added the optional property `usageStats` to the response with the `200` status
- **2026-06-02** `ffa063523058` — 1 warning
  - removed the optional property `usageStats` from the response with the `200` status

[Full history](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/changes/v2/org/:org/nico/vpc-prefix/:vpcPrefixId/patch.md)

---

[API](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api.md) · [All operations](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nvidia/nvidia-infra-controller-rest-api/revisions/2096eb1db2c1/schema)
