---
title: "Update an integration connection"
method: PATCH
path: "/v1/integrations/connections/{id}"
tags: ["Integrations"]
---

# Update an integration connection

`PATCH /v1/integrations/connections/{id}`

Update an integration connection in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables, and collect automated evidence.

## Path parameters

- `id` string, required

## Request body

- UpdateConnectionDto
  - `organizationId` string — Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
  - `metadata` object — Connection metadata to merge into the existing record. Common AWS keys: connectionName, regions (string array), awsScanMode ('comp_scanners' or 'security_hub'). The server shallow-merges this with the existing metadata, so include only the keys you want to change.

## Response `200`

## Changes

> 56 revisions in range; 4 could not be searched.

- **2026-06-04** `d7d0199d846f` — 1 info
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-05-29** `5382c53ab431` — 1 info
  - the endpoint scheme security `oauth2` was added to the API
- **2026-05-28** `73c1d2d2da5d` — 1 info
  - added the new optional request property `organizationId`
- **2026-05-28** `7c0713bef5b1` — 1 breaking
  - added required request body

[Change history](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/integrations/connections/:id/patch.md)

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
