> 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

# ListMovementLogs

# Package: operations

# Namespace: DataMovementService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/list-movement-logs.md

## Permission Scopes:
Data Mover Manage Jobs: SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS

## Introduction

Lists logs for the specified job.

Logs are generated by the destination for each item that failed to move. Some destinations also generate logs for items that moved successfully.

---

## REST API

### Schema

```
 Method: listMovementLogs
 Description: Lists logs for the specified job.  Logs are generated by the destination for each item that failed to move. Some destinations also generate logs for items that moved successfully.
 URL: https://www.wixapis.com/data-mover/v1/jobs/{jobId}/logs
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  jobId
 Method parameters: 
   param name: jobId | type:   none | required: true 
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: ListMovementLogsResponse
  - name: logs | type: array<MovementLog> | description: Job logs.  
     - name: sourceItemId | type: string | description: GUID of the item in the source, such as a Wix Data Item or a row number in a CSV file.  | validation: maxLength 512
     - name: failure | type: ApplicationError | description: Details about the failure if moving the item fails.  
        - name: code | type: string | description: Error code.  
        - name: description | type: string | description: Description of the error.  
        - name: data | type: object | description: Data related to the error.  
     - name: details | type: object | description: Additional details provided when moving the item succeeds with details.  > **Note**: Each destination type determines the structure of its `details` object.  
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### List logs for the specified job
```curl
curl -X GET 'https://www.wixapis.com/data-mover/v1/jobs/8646fc6e-58f3-4d78-b3ab-6a63a5a46400/logs' \
    -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.data.movementJobs.listMovementLogs(jobId, options)
 Description: Lists logs for the specified job.  Logs are generated by the destination for each item that failed to move. Some destinations also generate logs for items that moved successfully.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  jobId
 Method parameters: 
   param name: jobId | type: string | description: GUID of the job for which to list logs. | required: true | validation: format GUID
   param name: options | type: ListMovementLogsOptions  none  
        - name: paging | type: CursorPaging | description: Paging metadata.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListMovementLogsResponse>
  - name: logs | type: array<MovementLog> | description: Job logs.  
     - name: sourceItemId | type: string | description: GUID of the item in the source, such as a Wix Data Item or a row number in a CSV file.  | validation: maxLength 512
     - name: failure | type: ApplicationError | description: Details about the failure if moving the item fails.  
        - name: code | type: string | description: Error code.  
        - name: description | type: string | description: Description of the error.  
        - name: data | type: object | description: Data related to the error.  
     - name: details | type: object | description: Additional details provided when moving the item succeeds with details.  > **Note**: Each destination type determines the structure of its `details` object.  
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### listMovementLogs
```javascript
import { movementJobs } from '@wix/data';

async function listMovementLogs(jobId,options) {
  const response = await movementJobs.listMovementLogs(jobId,options);
};
```

### listMovementLogs (with elevated permissions)
```javascript
import { movementJobs } from '@wix/data';
import { auth } from '@wix/essentials';

async function myListMovementLogsMethod(jobId,options) {
  const elevatedListMovementLogs = auth.elevate(movementJobs.listMovementLogs);
  const response = await elevatedListMovementLogs(jobId,options);
}
```

### listMovementLogs (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { movementJobs } from '@wix/data';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { movementJobs },
  // Include the auth strategy and host as relevant
});


async function listMovementLogs(jobId,options) {
  const response = await myWixClient.movementJobs.listMovementLogs(jobId,options);
};
```

---