---
title: "PATCH /global-networks/{globalNetworkId}/connections/{connectionId}"
method: PATCH
path: "/global-networks/{globalNetworkId}/connections/{connectionId}"
---

# PATCH /global-networks/{globalNetworkId}/connections/{connectionId}

`PATCH /global-networks/{globalNetworkId}/connections/{connectionId}`

Updates the information for an existing connection. To remove information for any of the parameters, specify an empty string.

## Path parameters

- `globalNetworkId` string, required
- `connectionId` string, required

## Request body

- object
  - `LinkId` string — The ID of the link for the first device in the connection.
  - `ConnectedLinkId` string — The ID of the link for the second device in the connection.
  - `Description` string — <p>A description of the connection.</p> <p>Length Constraints: Maximum length of 256 characters.</p>

## Response `200`

Success

- UpdateConnectionResponse
  - `Connection` object — Information about the connection.
    - `ConnectionId` string — The ID of the connection.
    - `ConnectionArn` string — The Amazon Resource Name (ARN) of the connection.
    - `GlobalNetworkId` string — The ID of the global network.
    - `DeviceId` string — The ID of the first device in the connection.
    - `ConnectedDeviceId` string — The ID of the second device in the connection.
    - `LinkId` string — The ID of the link for the first device in the connection.
    - `ConnectedLinkId` string — The ID of the link for the second device in the connection.
    - `Description` string — The description of the connection.
    - `CreatedAt` string, date-time — The date and time that the connection was created.
    - `State` 'PENDING' | 'AVAILABLE' | 'DELETING' | 'UPDATING' — The state of the connection.
    - `Tags` Tag[] — The tags for the connection.
      - `Key` string — <p>The tag key.</p> <p>Constraints: Maximum length of 128 characters.</p>
      - `Value` string — <p>The tag value.</p> <p>Constraints: Maximum length of 256 characters.</p>

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ConflictException
- `484` — ThrottlingException
- `485` — InternalServerException

---

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