---
title: "Data Transfer"
method: POST
path: "/sites/sync"
tags: ["sites"]
---

# Data Transfer

`POST /sites/sync`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/sync`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/sync/post.ts> (a function with typed inputs; its response is checked against the schema)

Data Transfer allows you to replace the filesystem and/or database on your chosen destination site with the data from your source site. However, be aware that this could potentially overwrite more recent transactions on the destination site. Before using this feature, decide on the type of transfer you prefer - you can opt to transfer:

## Request body

- object
  - `from_site_id` integer
  - `to_site_id` integer
  - `themes_directory` boolean
  - `plugins_directory` boolean
  - `uploads_directory` boolean
  - `wp_content_directory` boolean
  - `root_directory` boolean
  - `skip_http_check` boolean
  - `skip_robots_txt` boolean
  - `skip_maintenance_mode` boolean
  - `preserve_jetpack_licenses` boolean
  - `database` boolean
  - `wp_environment_type` string

## Response `200`

Successful Response

- object
  - `message` string

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
