---
title: "Update Connection"
method: PATCH
path: "/v2/connections/{connection_id}"
tags: ["Connections"]
---

# Update Connection

`PATCH /v2/connections/{connection_id}`

Update an existing connection. For sensitive header values, sending an empty string keeps the existing value; send a new value to overwrite. Toggling `shared` moves the connection between personal and team-shared.

## Path parameters

- `connection_id` string, uuid, required

## Request body

- object
  - `name` string
  - `server_url` string, uri
  - `auth_method` 'url' | 'oauth' | 'apikey' | 'headers'
  - `headers` object, nullable
    - `plaintext` object
    - `secret` object
  - `shared` boolean

## Response `200`

Default Response

- object
  - `id` string, required
  - `name` string, required
  - `type` string, required
  - `provider` string, required
  - `user_id` string, nullable, required
  - `team_id` string, required
  - `server_url` string
  - `transport_type` 'stdio' | 'sse' | 'http'
  - `auth_method` string, nullable
  - `custom_integration_id` string, nullable
  - `icon_url` string, nullable
  - `oauth_provider` string, nullable
  - `oauth_provider_key` string, nullable
  - `oauth_scopes` string[], nullable
  - `has_headers` boolean
  - `has_oauth_tokens` boolean
  - `integration_id` string, nullable
  - `shared` boolean
  - `created_by` string, nullable
  - `broken_at` string, date-time, nullable
  - `broken_reason` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/duvo/apis/duvo-public-api.md) · [All operations](https://skmtc.net/duvo/apis/duvo-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duvo/duvo-public-api/revisions/dafcf3d868a9/schema)
