---
title: "Upserts a batch of Products by Ids"
method: POST
path: "/Sites/{siteId}/Products/Sync"
tags: ["Products"]
---

# Upserts a batch of Products by Ids

`POST /Sites/{siteId}/Products/Sync`

## Path parameters

- `siteId` integer, required

## Request body

- QPilotCoreModulesProductsActionsSyncProductsActionRequestData
  - `productData` QPilotCoreModulesProductsActionsSyncProductsActionRequestDataItem[], nullable
    - `id` string, required
    - `title` string, required
    - `price` number, float, required
    - `parentProductId` string, nullable
    - `sku` string, nullable
    - `gtin` string, nullable
    - `mpn` string, nullable
    - `description` string, nullable
    - `salePrice` number, float, nullable
    - `length` string, nullable
    - `width` string, nullable
    - `height` string, nullable
    - `weight` string, nullable
    - `weightUnitType` 'Pound' | 'Ounce' | 'Kilogram' | 'Gram'
    - `lengthUnitType` 'Inch' | 'Foot' | 'Yard' | 'Milimeter' | 'Centimeter' | 'Meter'
    - `shippingClass` string, nullable
    - `taxClass` string, nullable
    - `addToScheduledOrder` boolean
    - `processScheduledOrder` boolean
    - `availability` 'Undefined' | 'InStock' | 'OutOfStock' | 'Preorder'
    - `stock` integer, nullable
    - `productGroupIds` integer[], nullable
    - `availableFrequencies` QPilotCoreModelsFrequencyTypeValues[], nullable
      - `frequencyType` 'Days' | 'Weeks' | 'Months' | 'DayOfTheWeek' | 'DayOfTheMonth'
      - `displayName` string, nullable
      - `value` integer
    - `metadata` object, nullable
    - `active` boolean, nullable
    - `valid` boolean, nullable
    - `imageUrl` string, nullable
    - `imageThumbUrl` string, nullable
    - `backordersAllowed` boolean, nullable
    - `type` string, required

## Response `200`

Success

- QPilotCoreModulesProductsActionsSyncProductsActionResponse
  - `results` QPilotCoreModulesProductsActionsSyncProductActionResponseData[], nullable
    - `productId` string, nullable
    - `status` 1 | 2 | 3
    - `operation` 1 | 2 | 3
    - `details` QPilotCoreModulesProductsActionsProductSyncDetailItem[], nullable
      - `key` string, nullable
      - `value` string, nullable

---

[API](https://skmtc.net/qpilot/apis/qpilot-api.md) · [All operations](https://skmtc.net/qpilot/apis/qpilot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qpilot/qpilot-api/revisions/b2f13a808fdd/schema)
