---
title: "Sync an existing connection"
method: POST
path: "/sync/{connectionId}"
tags: ["sync"]
---

# Sync an existing connection

`POST /sync/{connectionId}`

Requires **accounts:read** and either **accounts:write** or **accounts:write:all** scopes.

## Path parameters

- `connectionId` string, required

## Request body

- SyncPost
  - `customerIpAddress` string — The customer ip address if it is currently logged in
  - `customerLastLoggedTime` string — The time when the customer last logged in represented as an ISO 8601 date-time format including timezone
  - `enableAsync` boolean — If set to true, the sync for data will happen in the background

## Response `200`

Successful Sync Response

- object
  - `data` object
    - `syncId` string, uuid, required — The Id the sync, which can be used to retrieve the sync status
    - `status` 'ok' | 'error', required — Status of the connection
  - `meta` object

## Other responses

- `400` — Unsuccessful Response - Bad request - Missing query parameters - Missing body properties
- `401` — Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403` — Unsuccessful Response - Forbidden - Invalid scopes
- `500` — Internal Server Error

---

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