v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_VPCs

Update a VPC Peering

To update the name of a VPC peering in a particular VPC, send a PATCH request to /v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID with the new name in the request body.

patch/v2/vpcs/{vpc_id}/peerings/{vpc_peering_id}

Path parameters

vpc_idstring uuid required

A unique identifier for a VPC.

vpc_peering_idstring uuid required

A unique identifier for a VPC peering.

Request body

namestring

The name of the VPC peering. Must be unique within the team and may only contain alphanumeric characters and dashes.

Example request

{
  "name": "nyc1-blr1-peering"
}

Response

The response will be a JSON object with a key called peering, containing the standard attributes associated with a VPC peering.

Example response

{
  "peering": {
    "id": "6b5c619c-359c-44ca-87e2-47e98170c01d",
    "name": "example-vpc-peering",
    "vpc_ids": [
      "997615ce-132d-4bae-9270-9ee21b395e5d",
      "e51aed59-3bb1-4a6a-8de0-9d1329e9c997"
    ],
    "created_at": "2024-01-09T20:44:32Z",
    "status": "PROVISIONING"
  }
}