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

# Sync an existing connection

`POST /sync/{connectionId}`

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/sync/{connectionId}`
- Auth: API key in header `Authorization`

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.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
