---
title: "Choose which account a connection syncs"
method: POST
path: "/api/replication/{config_id}/account"
tags: ["Replication"]
---

# Choose which account a connection syncs

`POST /api/replication/{config_id}/account`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/replication/{config_id}/account`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Switch an OAuth connection (Google Ads) to another account its login reaches.

The new account loads from the start: a full refresh drops the previous
account's rows, which a merge would keep beside the new ones. Should that
reload not finish, the next sync reloads anyway, because the replicator
records which account the tables were loaded from. A switch whose reload
cannot be queued is undone, so the card never shows an account that is
not loading.

## Path parameters

- `config_id` string, required

## Request body

- BodyChooseAccountApiReplicationConfigIdAccountPost
  - `customer_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
