> 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

# QueryJobs

# Package: operations

# Namespace: DataMovementService

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

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

## Introduction

Retrieves data movement jobs for the current site, on the basis of the filtering, sorting, and paging preferences you provide.

Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md) configuration.

---

## REST API

### Schema

```
 Method: queryJobs
 Description: Retrieves data movement jobs for the current site, on the basis of the filtering, sorting, and paging preferences you provide.  Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md) configuration.
 URL: https://www.wixapis.com/data-mover/v1/jobs/query
 Method: POST
 Method parameters:
   param name: query | type: CursorQuery    
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - 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
        - name: filter | type: object | description: Filter object.  Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#filters).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#sorting).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  | validation: format double
              - name: longitude | type: number | description: Address longitude.  | validation: format double
 Query fields:
   - field: id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: name | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: startedAt | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: finishedAt | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: workflowId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: QueryJobsResponse
  - name: jobs | type: array<DataMovementJob> | description: List of jobs matching the query.  
     - ONE-OF: 
        - name: partiallySuccessfulOptions | type: PartiallySuccessfulStatusOptions | description: When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details.  
           - name: cause | type: string | description: Reason the job was partially successful.  | validation: maxLength 1000
     - name: id | type: string | description: Job GUID.  | read-only: true | validation: format GUID
     - name: startedAt | type: string | description: When the job was submitted.  | read-only: true | validation: format date-time
     - name: status | type: JobStatus | description: Current job status.  | read-only: true 
         - enum:
         -     UNINITIALIZED: Job was submitted but has not yet started.
         -     INITIALIZING: Job is initializing.
         -     IN_PROGRESS: Job is in progress.
         -     COMPLETED: Job has successfully completed.
         -     FAILED: Job has failed.
         -     PARTIALLY_SUCCESSFUL: Job has completed but was partially successful due to a destination limitation. See `PartiallySuccessfulOptions` for additional details.
     - name: source | type: Source | description: Source to move data from.  
        - ONE-OF: 
           - name: wixDataCollection | type: WixDataSource | description: Wix data collection.  You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site.md).  
              - ONE-OF: 
                 - name: filterQuery | type: FilterQuery | description: Filter and field selection to apply to the collection items.  
                    - name: filter | type: object | description: Filter to apply to the items. Only items that pass the filter are moved.  Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#filters).  
                    - name: fields | type: array<string> | description: Item fields to move. If not set, the method moves the full items.  
                 - name: aggregationQuery | type: AggregationQuery | description: Aggregation pipeline to run on the collection.  
                    - name: aggregationPipeline | type: AggregationPipeline | description: Aggregation pipeline to run on the collection.  
                       - ONE-OF: 
                          - name: paging | type: Paging | description: Paging options to limit and skip the number of results.  Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md).  
                             - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
                             - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
                          - name: cursorPaging | type: CursorPaging | description: Cursor token referring to a page of results.  Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.  
                             - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 1000, format int32
                             - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 150000
                       - name: stages | type: array<Stage> | description: Sequence of aggregation operations to apply to the data.  Stages are processed in order, with each stage operating on the output of the previous stage.  | validation: maxItems 100
                          - ONE-OF: 
                             - name: group | type: Group | description: Groups aggregated items to new result items.  
                                - name: groupIds | type: array<GroupId> | description: Grouping criteria by which to organize items.  Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.  Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.  | validation: maxItems 1000
                                   - name: key | type: string | description: Name of the field to group items by.  This becomes the field name in the result's `_id` property.  | validation: maxLength 1000
                                   - name: expression | type: Expression | description: Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property.  
                                      - ONE-OF: 
                                         - name: fieldPath | type: string | description: Path to the field containing the value to resolve.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`.  | validation: maxLength 1000
                                         - name: text | type: string | description: Text value.  | validation: maxLength 1000
                                         - name: numeric | type: number | description: Number value.  
                                         - name: add | type: AddOperation | description: Adds the specified expressions together.  
                                            - name: expressions | type: array<Expression> | description: Expressions to add together.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: sum | type: SumOperation | description: Calculates the total sum of multiple expressions.  
                                            - name: expressions | type: array<Expression> | description: Expressions to calculate the total sum of.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: subtract | type: SubtractOperation | description: Subtracts 1 expression from another.  
                                            - name: firstExpression | type: Expression | description: Expression to subtract `secondExpression` from.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to subtract from `firstExpression`.  Expression must resolve to a number.  
                                         - name: multiply | type: MultiplyOperation | description: Multiplies multiple expressions together.  
                                            - name: expressions | type: array<Expression> | description: Expressions to multiply.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: divide | type: DivideOperation | description: Divides 1 expression by another.  
                                            - name: firstExpression | type: Expression | description: Expression to divide by `secondExpression`.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to divide `firstExpression` by.  Expression must resolve to a non-zero number.  
                                         - name: abs | type: AbsOperation | description: Finds the absolute value of an expression.  
                                            - name: expression | type: Expression | description: Expression to find the absolute value of.  Expression must resolve to a number.  
                                         - name: mod | type: ModOperation | description: Finds the remainder when dividing 1 expression by another.  
                                            - name: firstExpression | type: Expression | description: Expression to divide by `secondExpression` to find the remainder.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to divide `firstExpression` by.  Expression must resolve to a non-zero number.  
                                         - name: floor | type: FloorOperation | description: Rounds an expression down to the nearest whole number.  
                                            - name: expression | type: Expression | description: Expression to round down to the nearest whole number.  Expression must resolve to a number.  
                                         - name: ceil | type: CeilOperation | description: Rounds an expression up to the nearest whole number.  
                                            - name: expression | type: Expression | description: Expression to round up to the nearest whole number.  Expression must resolve to a number.  
                                         - name: concat | type: ConcatOperation | description: Joins multiple expressions together to create a string.  
                                            - name: expressions | type: array<Expression> | description: Expressions to join together.  All expressions must resolve to strings.  | validation: maxItems 1000
                                         - name: stringify | type: StringifyOperation | description: Converts an expression to a string.  
                                            - name: expression | type: Expression | description: Expression to convert to a string.  
                                         - name: toLower | type: ToLowerOperation | description: Converts an expression to lowercase.  
                                            - name: expression | type: Expression | description: Expression to convert to lowercase.  Expression must resolve to a string.  
                                         - name: toUpper | type: ToUpperOperation | description: Converts an expression to uppercase.  
                                            - name: expression | type: Expression | description: Expression to convert to uppercase.  Expression must resolve to a string.  
                                         - name: substring | type: SubstringOperation | description: Extracts a portion of a string expression.  
                                            - name: expression | type: Expression | description: Expression to extract a substring from.  Expression must resolve to a string.  
                                            - name: startExpression | type: Expression | description: Starting position of the substring to extract, specified in zero-based indexing.  Expression must resolve to a number.  
                                            - name: lengthExpression | type: Expression | description: Number of characters to extract from the starting position.  Expression must resolve to a number.  
                                         - name: length | type: LengthOperation | description: Finds the length of a string expression.  
                                            - name: expression | type: Expression | description: Expression to count the total number of characters of.  Expression must resolve to a string.  
                                         - name: boolean | type: boolean | description: Boolean value.  
                                         - name: condition | type: ConditionOperation | description: Returns one of two expressions based on a condition.  
                                            - name: ifExpression | type: Expression | description: Expression to evaluate as a condition.  
                                            - name: whenTrue | type: Expression | description: Expression to return when `ifExpression` resolves to `true`.  
                                            - name: whenFalse | type: Expression | description: Expression to return when `ifExpression` resolves to `false`.  
                                         - name: gt | type: GreaterThanOperation | description: Checks whether the first expression is greater than the second expression.  
                                            - name: firstExpression | type: Expression | description: Expression on the left side of the comparison.  
                                            - name: secondExpression | type: Expression | description: Expression on the right side of the comparison.  
                                         - name: size | type: SizeOperation | description: Returns the number of elements in an array expression.  
                                            - name: expression | type: Expression | description: Expression containing the array whose size to return.  
                                - name: accumulators | type: array<Accumulator> | description: Accumulation operations to run on each group.  Accumulators aggregate data across all items in the group and return the result in a new field.  > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.  | validation: maxItems 1000
                                   - ONE-OF: 
                                      - name: avg | type: Avg | description: Calculates the average value across all items in the group based on the specified expression.  
                                         - name: expression | type: Expression | description: Expression to calculate the group's average value.  Expression must resolve to a number.  
                                      - name: min | type: Min | description: Finds the minimum value across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to find the group's minimum value.  Expression must resolve to a comparable value, such as a number or string.  
                                      - name: max | type: Max | description: Finds the maximum value across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to find the group's maximum value.  Expression must resolve to a comparable value, such as a number or string.  
                                      - name: sum | type: Sum | description: Calculates the sum of the specified expression across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to calculate the group's total sum.  Expression must resolve to a number.  
                                      - name: first | type: First | description: Finds the first item in the group.  
                                         - name: expression | type: Expression | description: Expression to find the first item in the group.  
                                      - name: last | type: Last | description: Finds the last item in the group.  
                                         - name: expression | type: Expression | description: Expression to find the last item in the group.  
                                      - name: push | type: Push | description: Collects values from all items in the group into an array.  
                                         - name: expression | type: Expression | description: Expression to collect items into an array.  
                                   - name: resultFieldName | type: string | description: Field key in the output item to store the result in.  | validation: maxLength 1000
                             - name: filter | type: object | description: Aggregation filter. Only items that match the filter are processed.  Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language.md#filters).  > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data.md).  
                             - name: sort | type: Sorting | description: Sorting preferences.  Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md).  
                                - name: values | type: array<Sorting> | description: Fields to sort the results by.  | validation: maxItems 1000
                                   - name: fieldName | type: string | description: Name of the field to sort by.  | validation: minLength 1, maxLength 1000
                                   - name: order | type: SortOrder | description: Sort order.  
                                                 - enum: ASC, DESC
                             - name: projection | type: Projection | description: Transforms items by including, excluding, or reshaping fields.  
                                - name: fields | type: array<Field> | description: Fields to include, exclude, or reshape.  | validation: maxItems 1000
                                   - ONE-OF: 
                                      - name: include | type: Include | description: When specified, includes only the specified field in the result. All other fields are excluded.  
                                         - name: fieldName | type: string | description: Key of the field to include in the result.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                      - name: exclude | type: Exclude | description: When specified, excludes the specified field from the result. All other fields are included.  
                                         - name: fieldName | type: string | description: Key of the field to exclude from the result.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                      - name: reshape | type: Reshape | description: Reshapes a new field based on the specified expression. The field used by the expression is not included in the result.  
                                         - name: resultFieldName | type: string | description: Key of the field to create in the result item.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                         - name: expression | type: Expression | description: Expression to resolve. The result of the expression becomes the value of the new field.  
                                      - name: projectNested | type: ProjectNested | description: Creates nested fields by including, excluding, or reshaping fields.  
                                         - name: resultFieldName | type: string | description: Key of the parent field for the nested fields.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                         - name: fields | type: array<Field> | description: Nested fields to include, exclude, or reshape.  | validation: maxItems 1000
                             - name: objectToArray | type: ObjectToArray | description: Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object.  
                                - name: objectFieldName | type: string | description: Key of the object field to convert to an array.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                - name: destinationFieldName | type: string | description: Key of the new array to create in the result item.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                             - name: unwindArray | type: UnwindArray | description: Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element.  
                                - name: arrayFieldName | type: string | description: Key of the array field to unwind.  Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                             - name: skip | type: integer | description: Number of results to skip from the beginning of the result set.  
                             - name: limit | type: integer | description: Maximum number of results to return.  
                             - name: addFields | type: AddFields | description: Adds or replaces fields in each result item.  
                                - name: fields | type: array<AddField> | description: Fields to add or replace in the result items.  | validation: maxItems 1000
                                   - name: fieldName | type: string | description: Key of the field to add or replace in the result item.  | validation: maxLength 1000
                                   - name: expression | type: Expression | description: Expression to resolve. The result of the expression becomes the value of the field.  
                             - name: lookup | type: Lookup | description: Joins items from another collection into an array field by matching a local field against a foreign field.  
                                - name: dataCollectionId | type: string | description: GUID of the collection to join with.  | validation: maxLength 256
                                - name: localField | type: string | description: Key of the local field whose value is used for matching items in the joined collection.  | validation: maxLength 1000
                                - name: foreignField | type: string | description: Key of the field in the joined collection to match against the local field value.  | validation: maxLength 1000
                                - name: asField | type: string | description: Key of the array field where matching joined items are stored.  | validation: maxLength 1000
                             - name: unionWith | type: UnionWith | description: Appends results from another collection pipeline to the current results.  
                                - name: dataCollectionId | type: string | description: GUID of the collection whose results are appended to the current pipeline results.  | validation: maxLength 256
                                - name: pipeline | type: AggregationPipeline | description: Pipeline to run on the union collection before appending its results.  
                    - name: fields | type: array<Field> | description: Fields, will be used to map aggregation pipeline result to export result. Fields in the aggregation pipeline results that are not in the provided list will be ignored. If no fields provided, data will be exported as is, without transformation or field name mapping.  | validation: minItems 0, maxItems 1000
                       - name: key | type: string | description: Field GUID.  If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.  | validation: maxLength 1024
                       - name: displayName | type: string | description: Field display name.  When moving items to CSV files, use this to set the header of the target column.  | validation: maxLength 1024
                       - name: fieldType | type: FieldType | description: Field data type. Default: `ANY`.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                                 - enum:
                                 -     ANY: Any data type.
                                 -     STRING: String.
                                 -     NUMBER: Number.
                                 -     BOOLEAN: Boolean.
                                 -     DATE: Date string in ISO 8601 date format: `YYYY-MM-DD`.
                                 -     DATETIME: [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`.
                                 -     BINARY: Binary file.
                                 -     OBJECT: object.
                                 -     ARRAY: Array.
                                 -     URL: Web URL.
                                 -     WIX_MEDIA_URL: 
                                 -     WIX_MEDIA_IMAGE_URL: 
                                 -     WIX_MEDIA_VIDEO_URL: 
                                 -     WIX_MEDIA_DOCUMENT_URL: 
                                 -     IMAGE_URL: 
                                 -     VIDEO_URL: 
              - name: collectionId | type: string | description: GUID of the data collection.  | validation: minLength 1, maxLength 256
           - name: localization | type: LocalizationSource | description: Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.  Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).  
              - name: languages | type: array<string> | description: Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.  Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).  | validation: minItems 2, maxItems 64, format LANGUAGE_TAG
           - name: file | type: FileSource | description: Source file.  You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.  To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url.md)) and use the `uploadUrl` from the response. For example:  `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`  
              - name: format | type: FileFormat | description: File format. If not specified, automatically determined by Wix.  
                     - enum:
                     -     UNKNOWN: Unknown format.
                     -     CSV: CSV format.
                     -     JSONL: JSONL format.
              - name: fileId | type: string | description: File GUID as returned in the `fileId` property of the Create File Upload URL method's response.  | validation: maxLength 512
              - name: url | type: string | description: URL where the source file is uploaded. Automatically generated by Wix.  | read-only: true | validation: maxLength 2048
     - name: destination | type: Destination | description: Destination to move data to.  
        - ONE-OF: 
           - name: wixDataCollection | type: WixDataDestination | description: Wix data collection.  You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site.md).  
              - name: collectionId | type: string | description: GUID of the destination collection.  | validation: maxLength 256
              - name: writePolicy | type: WritePolicy | description: When items already exist in the destination collection, the data writing policy.  Default: `OVERWRITE`.  
                     - enum:
                     -     OVERWRITE: When an item with the same ID exists in the collection, overwrite it.
                     -     SKIP_EXISTING: When an item with the same ID exists in the collection, skip it.
                     -     TRUNCATE_BEFORE: Clear the destination collection before moving data. When the job completes, the collection contains only the moved data.
           - name: localization | type: LocalizationDestination | description: Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.  Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).  
              - name: languages | type: array<string> | description: Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.  Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).  | validation: minItems 2, maxItems 64, format LANGUAGE_TAG
           - name: file | type: FileDestination | description: Downloadable file with the moved items.  
              - name: format | type: FileFormat | description: File format.  
              - name: fileName | type: string | description: File name.  | validation: maxLength 512
              - name: url | type: string | description: File download URL.  | read-only: true | validation: maxLength 2048
     - name: name | type: string | description: Job name.  | validation: maxLength 1024
     - name: progress | type: Progress | description: When the job `status` is `IN_PROGRESS`, the progress details.  | read-only: true 
        - name: current | type: integer | description: Number of units already processed.  | read-only: true 
        - name: total | type: integer | description: Total number of units to move.  | read-only: true | validation: format int32
        - name: itemsRejected | type: integer | description: Number of items that failed to move to the destination.  
        - name: itemsSuccessful | type: integer | description: Number of items successfully moved to the destination.  
     - name: finishedAt | type: string | description: Job finish time.  A job is considered finished when its `status` updates to `COMPLETED`, `FAILED`, or `PARTIALLY_SUCCESSFUL`.  | read-only: true | validation: format date-time
     - name: error | type: ApplicationError | description: Error information.  | read-only: true 
        - 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: sourceSiteId | type: string | description: When moving data from a Wix data collection, the source site GUID.  By default, the source site is the current site. To move data from [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site GUID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance.md).  > **Note**: You can specify the GUID of a source site or destination site, but not both.  | validation: format GUID
     - name: destinationSiteId | type: string | description: When moving data to a Wix data collection, the destination site GUID.  By default, the destination site is the current site. To move data to [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site GUID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance.md).  > **Note**: You can specify the GUID of a source site or destination site, but not both.  | validation: format GUID
     - name: logsRecorded | type: integer | description: Number of recorded logs.  
     - name: scheduleId | type: string | description: Sync Schedule GUID, if the job was triggered by a sync schedule.  | read-only: true | validation: format GUID
     - name: extendedFields | type: ExtendedFields | description: Extended fields for custom metadata added by applications.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: workflowId | type: string | description: Workflow GUID, if the job was created as a child step of a workflow.  | read-only: true | validation: format GUID
  - 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

### Query failed jobs for the current site, sorted from latest to earliest
```curl
curl -X POST 'https://www.wixapis.com/data-mover/v1/jobs/query' \
    -H 'Authorization: <AUTH>' \
    -d '{
        "query": {
            "filter": {
                "status": "FAILED"
            },
            "sort": [
                {
                    "fieldName": "finishedAt",
                    "order": "DESC"
                }
            ]
        }
    }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.data.movementJobs.queryJobs(query)
 Description: Retrieves data movement jobs for the current site, on the basis of the filtering, sorting, and paging preferences you provide.  Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md) configuration.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: JobQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - 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
        - name: filter | type: object | description: Filter object.  Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#filters).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#sorting).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  
              - name: longitude | type: number | description: Address longitude.  
 Query fields:
   - field: _id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: name | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: startedAt | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: finishedAt | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: workflowId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryJobsResponse>
  - name: jobs | type: array<DataMovementJob> | description: List of jobs matching the query.  
     - ONE-OF: 
        - name: partiallySuccessfulOptions | type: PartiallySuccessfulStatusOptions | description: When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details.  
           - name: cause | type: string | description: Reason the job was partially successful.  | validation: maxLength 1000
     - name: _id | type: string | description: Job GUID.  | read-only: true | validation: format GUID
     - name: startedAt | type: Date | description: When the job was submitted.  | read-only: true 
     - name: status | type: JobStatus | description: Current job status.  | read-only: true 
         - enum:
         -     UNINITIALIZED: Job was submitted but has not yet started.
         -     INITIALIZING: Job is initializing.
         -     IN_PROGRESS: Job is in progress.
         -     COMPLETED: Job has successfully completed.
         -     FAILED: Job has failed.
         -     PARTIALLY_SUCCESSFUL: Job has completed but was partially successful due to a destination limitation. See `PartiallySuccessfulOptions` for additional details.
     - name: source | type: Source | description: Source to move data from.  
        - ONE-OF: 
           - name: wixDataCollection | type: WixDataSource | description: Wix data collection.  You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site.md).  
              - ONE-OF: 
                 - name: filterQuery | type: FilterQuery | description: Filter and field selection to apply to the collection items.  
                    - name: filter | type: object | description: Filter to apply to the items. Only items that pass the filter are moved.  Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#filters).  
                    - name: fields | type: array<string> | description: Item fields to move. If not set, the method moves the full items.  
                 - name: aggregationQuery | type: AggregationQuery | description: Aggregation pipeline to run on the collection.  
                    - name: aggregationPipeline | type: AggregationPipeline | description: Aggregation pipeline to run on the collection.  
                       - ONE-OF: 
                          - name: paging | type: Paging | description: Paging options to limit and skip the number of results.  Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md).  
                             - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
                             - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
                          - name: cursorPaging | type: CursorPaging | description: Cursor token referring to a page of results.  Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.  
                             - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 1000, format int32
                             - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 150000
                       - name: stages | type: array<Stage> | description: Sequence of aggregation operations to apply to the data.  Stages are processed in order, with each stage operating on the output of the previous stage.  | validation: maxItems 100
                          - ONE-OF: 
                             - name: group | type: Group | description: Groups aggregated items to new result items.  
                                - name: groupIds | type: array<GroupId> | description: Grouping criteria by which to organize items.  Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.  Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.  | validation: maxItems 1000
                                   - name: key | type: string | description: Name of the field to group items by.  This becomes the field name in the result's `_id` property.  | validation: maxLength 1000
                                   - name: expression | type: Expression | description: Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property.  
                                      - ONE-OF: 
                                         - name: fieldPath | type: string | description: Path to the field containing the value to resolve.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`.  | validation: maxLength 1000
                                         - name: text | type: string | description: Text value.  | validation: maxLength 1000
                                         - name: numeric | type: number | description: Number value.  
                                         - name: add | type: AddOperation | description: Adds the specified expressions together.  
                                            - name: expressions | type: array<Expression> | description: Expressions to add together.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: sum | type: SumOperation | description: Calculates the total sum of multiple expressions.  
                                            - name: expressions | type: array<Expression> | description: Expressions to calculate the total sum of.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: subtract | type: SubtractOperation | description: Subtracts 1 expression from another.  
                                            - name: firstExpression | type: Expression | description: Expression to subtract `secondExpression` from.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to subtract from `firstExpression`.  Expression must resolve to a number.  
                                         - name: multiply | type: MultiplyOperation | description: Multiplies multiple expressions together.  
                                            - name: expressions | type: array<Expression> | description: Expressions to multiply.  All expressions must resolve to numbers.  | validation: maxItems 1000
                                         - name: divide | type: DivideOperation | description: Divides 1 expression by another.  
                                            - name: firstExpression | type: Expression | description: Expression to divide by `secondExpression`.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to divide `firstExpression` by.  Expression must resolve to a non-zero number.  
                                         - name: abs | type: AbsOperation | description: Finds the absolute value of an expression.  
                                            - name: expression | type: Expression | description: Expression to find the absolute value of.  Expression must resolve to a number.  
                                         - name: mod | type: ModOperation | description: Finds the remainder when dividing 1 expression by another.  
                                            - name: firstExpression | type: Expression | description: Expression to divide by `secondExpression` to find the remainder.  Expression must resolve to a number.  
                                            - name: secondExpression | type: Expression | description: Expression to divide `firstExpression` by.  Expression must resolve to a non-zero number.  
                                         - name: floor | type: FloorOperation | description: Rounds an expression down to the nearest whole number.  
                                            - name: expression | type: Expression | description: Expression to round down to the nearest whole number.  Expression must resolve to a number.  
                                         - name: ceil | type: CeilOperation | description: Rounds an expression up to the nearest whole number.  
                                            - name: expression | type: Expression | description: Expression to round up to the nearest whole number.  Expression must resolve to a number.  
                                         - name: concat | type: ConcatOperation | description: Joins multiple expressions together to create a string.  
                                            - name: expressions | type: array<Expression> | description: Expressions to join together.  All expressions must resolve to strings.  | validation: maxItems 1000
                                         - name: stringify | type: StringifyOperation | description: Converts an expression to a string.  
                                            - name: expression | type: Expression | description: Expression to convert to a string.  
                                         - name: toLower | type: ToLowerOperation | description: Converts an expression to lowercase.  
                                            - name: expression | type: Expression | description: Expression to convert to lowercase.  Expression must resolve to a string.  
                                         - name: toUpper | type: ToUpperOperation | description: Converts an expression to uppercase.  
                                            - name: expression | type: Expression | description: Expression to convert to uppercase.  Expression must resolve to a string.  
                                         - name: substring | type: SubstringOperation | description: Extracts a portion of a string expression.  
                                            - name: expression | type: Expression | description: Expression to extract a substring from.  Expression must resolve to a string.  
                                            - name: startExpression | type: Expression | description: Starting position of the substring to extract, specified in zero-based indexing.  Expression must resolve to a number.  
                                            - name: lengthExpression | type: Expression | description: Number of characters to extract from the starting position.  Expression must resolve to a number.  
                                         - name: length | type: LengthOperation | description: Finds the length of a string expression.  
                                            - name: expression | type: Expression | description: Expression to count the total number of characters of.  Expression must resolve to a string.  
                                         - name: boolean | type: boolean | description: Boolean value.  
                                         - name: condition | type: ConditionOperation | description: Returns one of two expressions based on a condition.  
                                            - name: ifExpression | type: Expression | description: Expression to evaluate as a condition.  
                                            - name: whenTrue | type: Expression | description: Expression to return when `ifExpression` resolves to `true`.  
                                            - name: whenFalse | type: Expression | description: Expression to return when `ifExpression` resolves to `false`.  
                                         - name: gt | type: GreaterThanOperation | description: Checks whether the first expression is greater than the second expression.  
                                            - name: firstExpression | type: Expression | description: Expression on the left side of the comparison.  
                                            - name: secondExpression | type: Expression | description: Expression on the right side of the comparison.  
                                         - name: size | type: SizeOperation | description: Returns the number of elements in an array expression.  
                                            - name: expression | type: Expression | description: Expression containing the array whose size to return.  
                                - name: accumulators | type: array<Accumulator> | description: Accumulation operations to run on each group.  Accumulators aggregate data across all items in the group and return the result in a new field.  > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.  | validation: maxItems 1000
                                   - ONE-OF: 
                                      - name: avg | type: Avg | description: Calculates the average value across all items in the group based on the specified expression.  
                                         - name: expression | type: Expression | description: Expression to calculate the group's average value.  Expression must resolve to a number.  
                                      - name: min | type: Min | description: Finds the minimum value across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to find the group's minimum value.  Expression must resolve to a comparable value, such as a number or string.  
                                      - name: max | type: Max | description: Finds the maximum value across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to find the group's maximum value.  Expression must resolve to a comparable value, such as a number or string.  
                                      - name: sum | type: Sum | description: Calculates the sum of the specified expression across all items in the group.  
                                         - name: expression | type: Expression | description: Expression to calculate the group's total sum.  Expression must resolve to a number.  
                                      - name: first | type: First | description: Finds the first item in the group.  
                                         - name: expression | type: Expression | description: Expression to find the first item in the group.  
                                      - name: last | type: Last | description: Finds the last item in the group.  
                                         - name: expression | type: Expression | description: Expression to find the last item in the group.  
                                      - name: push | type: Push | description: Collects values from all items in the group into an array.  
                                         - name: expression | type: Expression | description: Expression to collect items into an array.  
                                   - name: resultFieldName | type: string | description: Field key in the output item to store the result in.  | validation: maxLength 1000
                             - name: filter | type: object | description: Aggregation filter. Only items that match the filter are processed.  Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language.md#filters).  > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data.md).  
                             - name: sort | type: Sorting | description: Sorting preferences.  Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging.md).  
                                - name: values | type: array<Sorting> | description: Fields to sort the results by.  | validation: maxItems 1000
                                   - name: fieldName | type: string | description: Name of the field to sort by.  | validation: minLength 1, maxLength 1000
                                   - name: order | type: SortOrder | description: Sort order.  
                                                 - enum: ASC, DESC
                             - name: projection | type: Projection | description: Transforms items by including, excluding, or reshaping fields.  
                                - name: fields | type: array<Field> | description: Fields to include, exclude, or reshape.  | validation: maxItems 1000
                                   - ONE-OF: 
                                      - name: include | type: Include | description: When specified, includes only the specified field in the result. All other fields are excluded.  
                                         - name: fieldName | type: string | description: Key of the field to include in the result.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                      - name: exclude | type: Exclude | description: When specified, excludes the specified field from the result. All other fields are included.  
                                         - name: fieldName | type: string | description: Key of the field to exclude from the result.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                      - name: reshape | type: Reshape | description: Reshapes a new field based on the specified expression. The field used by the expression is not included in the result.  
                                         - name: resultFieldName | type: string | description: Key of the field to create in the result item.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                         - name: expression | type: Expression | description: Expression to resolve. The result of the expression becomes the value of the new field.  
                                      - name: projectNested | type: ProjectNested | description: Creates nested fields by including, excluding, or reshaping fields.  
                                         - name: resultFieldName | type: string | description: Key of the parent field for the nested fields.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                         - name: fields | type: array<Field> | description: Nested fields to include, exclude, or reshape.  | validation: maxItems 1000
                             - name: objectToArray | type: ObjectToArray | description: Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object.  
                                - name: objectFieldName | type: string | description: Key of the object field to convert to an array.  Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                                - name: destinationFieldName | type: string | description: Key of the new array to create in the result item.  Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                             - name: unwindArray | type: UnwindArray | description: Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element.  
                                - name: arrayFieldName | type: string | description: Key of the array field to unwind.  Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).  | validation: maxLength 1000
                             - name: skip | type: integer | description: Number of results to skip from the beginning of the result set.  
                             - name: limit | type: integer | description: Maximum number of results to return.  
                             - name: addFields | type: AddFields | description: Adds or replaces fields in each result item.  
                                - name: fields | type: array<AddField> | description: Fields to add or replace in the result items.  | validation: maxItems 1000
                                   - name: fieldName | type: string | description: Key of the field to add or replace in the result item.  | validation: maxLength 1000
                                   - name: expression | type: Expression | description: Expression to resolve. The result of the expression becomes the value of the field.  
                             - name: lookup | type: Lookup | description: Joins items from another collection into an array field by matching a local field against a foreign field.  
                                - name: dataCollectionId | type: string | description: GUID of the collection to join with.  | validation: maxLength 256
                                - name: localField | type: string | description: Key of the local field whose value is used for matching items in the joined collection.  | validation: maxLength 1000
                                - name: foreignField | type: string | description: Key of the field in the joined collection to match against the local field value.  | validation: maxLength 1000
                                - name: asField | type: string | description: Key of the array field where matching joined items are stored.  | validation: maxLength 1000
                             - name: unionWith | type: UnionWith | description: Appends results from another collection pipeline to the current results.  
                                - name: dataCollectionId | type: string | description: GUID of the collection whose results are appended to the current pipeline results.  | validation: maxLength 256
                                - name: pipeline | type: AggregationPipeline | description: Pipeline to run on the union collection before appending its results.  
                    - name: fields | type: array<Field> | description: Fields, will be used to map aggregation pipeline result to export result. Fields in the aggregation pipeline results that are not in the provided list will be ignored. If no fields provided, data will be exported as is, without transformation or field name mapping.  | validation: minItems 0, maxItems 1000
                       - name: key | type: string | description: Field GUID.  If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.  | validation: maxLength 1024
                       - name: displayName | type: string | description: Field display name.  When moving items to CSV files, use this to set the header of the target column.  | validation: maxLength 1024
                       - name: fieldType | type: FieldType | description: Field data type. Default: `ANY`.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                                 - enum:
                                 -     ANY: Any data type.
                                 -     STRING: String.
                                 -     NUMBER: Number.
                                 -     BOOLEAN: Boolean.
                                 -     DATE: Date string in ISO 8601 date format: `YYYY-MM-DD`.
                                 -     DATETIME: [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`.
                                 -     BINARY: Binary file.
                                 -     OBJECT: object.
                                 -     ARRAY: Array.
                                 -     URL: Web URL.
                                 -     WIX_MEDIA_URL: 
                                 -     WIX_MEDIA_IMAGE_URL: 
                                 -     WIX_MEDIA_VIDEO_URL: 
                                 -     WIX_MEDIA_DOCUMENT_URL: 
                                 -     IMAGE_URL: 
                                 -     VIDEO_URL: 
              - name: collectionId | type: string | description: GUID of the data collection.  | validation: minLength 1, maxLength 256
           - name: localization | type: LocalizationSource | description: Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.  Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).  
              - name: languages | type: array<string> | description: Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.  Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).  | validation: minItems 2, maxItems 64, format LANGUAGE_TAG
           - name: file | type: FileSource | description: Source file.  You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.  To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url.md)) and use the `uploadUrl` from the response. For example:  `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`  
              - name: format | type: FileFormat | description: File format. If not specified, automatically determined by Wix.  
                     - enum:
                     -     UNKNOWN: Unknown format.
                     -     CSV: CSV format.
                     -     JSONL: JSONL format.
              - name: fileId | type: string | description: File GUID as returned in the `fileId` property of the Create File Upload URL method's response.  | validation: maxLength 512
              - name: url | type: string | description: URL where the source file is uploaded. Automatically generated by Wix.  | read-only: true | validation: maxLength 2048
     - name: destination | type: Destination | description: Destination to move data to.  
        - ONE-OF: 
           - name: wixDataCollection | type: WixDataDestination | description: Wix data collection.  You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site.md).  
              - name: collectionId | type: string | description: GUID of the destination collection.  | validation: maxLength 256
              - name: writePolicy | type: WritePolicy | description: When items already exist in the destination collection, the data writing policy.  Default: `OVERWRITE`.  
                     - enum:
                     -     OVERWRITE: When an item with the same ID exists in the collection, overwrite it.
                     -     SKIP_EXISTING: When an item with the same ID exists in the collection, skip it.
                     -     TRUNCATE_BEFORE: Clear the destination collection before moving data. When the job completes, the collection contains only the moved data.
           - name: localization | type: LocalizationDestination | description: Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.  Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).  
              - name: languages | type: array<string> | description: Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.  Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).  | validation: minItems 2, maxItems 64, format LANGUAGE_TAG
           - name: file | type: FileDestination | description: Downloadable file with the moved items.  
              - name: format | type: FileFormat | description: File format.  
              - name: fileName | type: string | description: File name.  | validation: maxLength 512
              - name: url | type: string | description: File download URL.  | read-only: true | validation: maxLength 2048
     - name: name | type: string | description: Job name.  | validation: maxLength 1024
     - name: progress | type: Progress | description: When the job `status` is `IN_PROGRESS`, the progress details.  | read-only: true 
        - name: current | type: integer | description: Number of units already processed.  | read-only: true 
        - name: total | type: integer | description: Total number of units to move.  | read-only: true | validation: format int32
        - name: itemsRejected | type: integer | description: Number of items that failed to move to the destination.  
        - name: itemsSuccessful | type: integer | description: Number of items successfully moved to the destination.  
     - name: finishedAt | type: Date | description: Job finish time.  A job is considered finished when its `status` updates to `COMPLETED`, `FAILED`, or `PARTIALLY_SUCCESSFUL`.  | read-only: true 
     - name: error | type: ApplicationError | description: Error information.  | read-only: true 
        - 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: sourceSiteId | type: string | description: When moving data from a Wix data collection, the source site GUID.  By default, the source site is the current site. To move data from [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site GUID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance.md).  > **Note**: You can specify the GUID of a source site or destination site, but not both.  | validation: format GUID
     - name: destinationSiteId | type: string | description: When moving data to a Wix data collection, the destination site GUID.  By default, the destination site is the current site. To move data to [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site GUID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance.md).  > **Note**: You can specify the GUID of a source site or destination site, but not both.  | validation: format GUID
     - name: logsRecorded | type: integer | description: Number of recorded logs.  
     - name: scheduleId | type: string | description: Sync Schedule GUID, if the job was triggered by a sync schedule.  | read-only: true | validation: format GUID
     - name: extendedFields | type: ExtendedFields | description: Extended fields for custom metadata added by applications.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: workflowId | type: string | description: Workflow GUID, if the job was created as a child step of a workflow.  | read-only: true | validation: format GUID
  - 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

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

async function queryJobs(query) {
  const response = await movementJobs.queryJobs(query);
};
```

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

async function myQueryJobsMethod(query) {
  const elevatedQueryJobs = auth.elevate(movementJobs.queryJobs);
  const response = await elevatedQueryJobs(query);
}
```

### queryJobs (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 queryJobs(query) {
  const response = await myWixClient.movementJobs.queryJobs(query);
};
```

---