> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction.md

## Article Content:

# About the Data Movement Jobs API

> **Note for app developers:** Wix Data APIs require the site's [code editor](https://dev.wix.com/docs/develop-websites/articles/get-started/development-environments.md) to be enabled. If you are building a Wix app, add a [data collections extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/about-data-collections-extensions.md) to automatically enable the code editor and create data collections when your app is installed on a site.


The Data Movement Jobs API allows you to create and manage jobs to move data to and from a Wix site. Jobs can transfer [data items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/introduction.md) or [localized CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) between data collections, files, or sites.

> **Note**: By default, jobs run on the current site. However, a job can run on any site in the same account. Learn more about [managing multiple sites under one account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).

With the Data Movement Jobs API, you can:

- [Submit a job](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/submit-job.md) to move data from a source to a destination.
- [Query](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/query-jobs.md) and [list jobs](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/list-jobs.md) for the current site.
- [Retrieve a job](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/get-job.md) to view its status.
- [Terminate a job](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/terminate-job.md) before it completes.
- [List a job's logs](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/list-movement-logs.md) to view additional details about it.

## Before you begin

It's important to note the following points before starting to code:

- You can only move localized CMS content to or from a site that has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-adding-and-setting-up-wix-multilingual) installed.

## Use cases

- [Export data from a collection to a file](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/sample-flows.md).
- [Import data from a file to a collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/sample-flows.md).
- [Export, edit, and import localized CMS content](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/sample-flows.md).
- Move data from the current site to another site in the same account.

## Error information

When working with the Data Movement Jobs API, you might encounter the following errors:

| Error Code | Description                                                                                                                                                                              |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `WDH0000`  | Unknown error.                                                                                                                                                                           |
| `WDH0001`  | Validation error during initialization.                                                                                                                                                  |
| `WDH0002`  | Internal service error when calling other Wix APIs. The error message contains additional information.                                                                                   |
| `WDH0003`  | Invalid data error when the data you're trying to move has an invalid format or unexpected values. For example, when uploading a file with corrupt contents or in an unsupported format. |

Errors can also be generated by other Wix services, such as the [Data Items API](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/introduction.md) or the [Multilingual API](https://dev.wix.com/docs/rest/business-management/multilingual/translation/introduction.md).

Learn more about [Wix Data error codes](https://dev.wix.com/docs/sdk/backend-modules/data/wix-data-error-codes.md).

## Terminology

- **Data movement job**: A process that moves data from a source to a destination.
- **Source**: Where data is moved from. This can be a data collection, a file, or localized CMS content.
- **Destination**: Where data is moved to. This can be a data collection, a file, or localized CMS content.
- **Localization**: Translated CMS content. Learn more about [translating CMS collection content with Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-adding-and-setting-up-wix-multilingual).

