---
title: dots.v2.partner_network_connect.attachments.byPa_id().patch()
description: Update an existing partner attachment
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/partner-network-connect/partnerattachments-patch/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.partner_network_connect.attachments.byPa_id().patch()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.partner_network_connect.attachments.byPa_id(pa_id).patch(body: Partner_attachment_updatableMember1 | Partner_attachment_updatableMember2 | Partner_attachment_updatableMember3, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithPa_PatchResponse>
```

## Description

To update an existing partner attachment, send a `PATCH` request to [`/v2/partner_network_connect/attachments/{pa_id}`](https://docs.digitalocean.com/reference/api/reference/partner-network-connect/index.html.md#partnerAttachments_patch) with a JSON object containing the fields to be updated.

## Parameters

### Path Parameters

`pa_id` string required

Example: `4de7ac8b-495b-4884-9a69-1050c6793cd6`

A unique identifier for a partner attachment.

Min: `1`

### Request Body

`body` object optional

## Show child properties

`name` string optional

Example: `env.prod-partner-network-connect`

The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.

`vpcIds` array of strings optional

Example: `["c140286f-e6ce-4131-8b7b-df4590ce8d6a", "994a2735-dc84-11e8-80bc-3cfdfea9fba1"]`

An array of VPCs IDs.

`bgp` object optional

BGP configurations

### Show child properties

`localRouterIp` string required

Example: `169.254.0.1/29`

IP of the DO router

`peerRouterIp` string required

Example: `169.254.0.6/29`

IP of the NaaS provider router

`peerRouterAsn` integer required

Example: `64532`

ASN of the peer router

`authKey` string required

Example: `0xsNnb1pwQlowdoMySEfWwk4I`

BGP Auth Key

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.partner_network_connect.attachments
    .byPa_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").patch({
    name: "env.prod-partner-network-connect",
});
```

## Response Example

## Show Response Example

```json
{
  "partner_attachment": {
    "id": "5a4981aa-9653-4bd1-bef5-d6bff52042e4",
    "name": "env.prod-partner-network-connect",
    "state": "CREATED",
    "created_at": "2025-03-27T13:03:53Z",
    "connection_bandwidth_in_mbps": 1000,
    "region": "NYC",
    "naas_provider": "MEGAPORT",
    "vpc_ids": [
      "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
    ],
    "bgp": {
      "local_asn": 65000,
      "local_router_ip": "2.2.2.2/29",
      "peer_asn": 65001,
      "peer_router_ip": "3.3.3.3/29"
    }
  }
}
```

## More Information

See [`/v2/partner_network_connect/attachments/{pa_id}`](https://docs.digitalocean.com/reference/api/reference/partner-network-connect/index.html.md#partnerAttachments_patch) in the API reference for additional detail on responses, headers, parameters, and more.