---
title: "Update a connection"
method: PATCH
path: "/api/v3/destinations/{destination_name}/connections/{id}"
tags: ["Destination connections"]
---

# Update a connection

`PATCH /api/v3/destinations/{destination_name}/connections/{id}`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/destinations/{destination_name}/connections/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `dts_session_id`
- TypeScript: <https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/docs/api/v3/destinations/:destination_name/connections/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Allows to update create_load_for_new_tables value for destination connection

## Path parameters

- `destination_name` string, required
- `id` integer, required

## Request body

- object
  - `create_load_for_new_tables` boolean

## Response `200`

Update a Connection

- DestinationConnection: Destination Connection object
  - `id` integer: Destination Connection ID
  - `destination` Destination: Destination object
    - `name` string: string identifier of destination
    - `title` string: Destination title
    - `info` string: Destination info
    - `icons` object
      - `res_300x200` string: URL to the 300x200 icon
      - `res_40x40` string: URL to the 40x40 icon
      - `res_20x20` string: URL to the 20x20 icon
  - `title` string: Destination Connection title
  - `updated_at` string: Destination Connection update date
  - `status` string: Destination Connection status
  - `error_text` string: Destination Connection error text
  - `is_editable` boolean: Is the Destination Connection editable
  - `create_load_for_new_tables` boolean: Create load for new tables

## Other responses

- `400`: Bad Request
- `401`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3.md) - [All operations](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/revisions/a881099bd6c4?raw)
