---
title: "Update Integration"
method: PATCH
path: "/integration/{connection_id}"
---

# Update Integration

`PATCH /integration/{connection_id}`

## Path parameters

- `connection_id` integer, required

## Headers

- `Authorization` string, nullable
- `X-User-Id` string, nullable

## Cookies

- `session_id` string, nullable

## Request body

- UpdateIntegrationSchema
  - `name` string, nullable

## Response `200`

Successful Response

- IntegrationSchema
  - `id` integer, required
  - `scope` 'account' | 'workspace', required — Whether an integration belongs to one account or the whole workspace.
  - `status` 'draft' | 'active' | 'reauth_required' | 'disabled', required
  - `name` string, required
  - `external_id` string, nullable, required
  - `external_label` string, nullable, required
  - `granted_scopes` string[], nullable, required
  - `missing_scopes` string[], required
  - `token_expires_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `config` union, required
    - FacebookIntegrationConfigSchema — FB-specific slice of an integration exposed to the FE. Lives inside the `config` discriminated union on the response — the FE narrows on `config.app` before reading FB-only fields.
      - `app` 'facebook'
      - `ad_accounts` IntegrationAdAccountSchema[], required
        - `external_account_id` string, required
        - `name` string, nullable, required
        - `currency` string, nullable, required
        - `timezone_name` string, nullable, required
    - SlackIntegrationConfigSchema
      - `app` 'slack'
      - `team_id` string, required
      - `team_name` string, nullable, required
      - `bot_user_id` string, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/runconverge/apis/fastapi.md) · [All operations](https://skmtc.dev/runconverge/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runconverge/fastapi/revisions/1452e350bd1d/schema)
