Przejdź do głównej zawartości

Zaktualizuj wybrane pola produktów (masowo)

POST
/api/products/v2/products/bulkUpdate
curl --request POST \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/bulkUpdate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "updates": [ { "id": 1, "name": "example", "catalogId": 1, "manufacturerId": 1, "sku": "example", "ean": "example", "weight": 1, "height": 1, "width": 1, "length": 1, "vat": 1, "categoryId": 1, "skipCategoryUpdate": true, "parentId": 1, "skipParentUpdate": true, "isBundle": true, "stocks": [ { "id": "example", "quantity": 1, "locationName": "example", "vatAmount": 1, "warehouseId": 1, "vatSymbol": "example" } ], "productPriceGroups": [ { "priceGroupId": 1, "price": 1 } ], "isAsteriskMarked": true, "overrideAllStocks": true, "properties": [ { "id": "example", "name": "example", "value": "example", "externalId": "example" } ], "productLinks": [ { "id": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1 } ], "complexFields": [ { "name": "example", "value": "example" } ], "bundleItems": [ { "bundleItemProductId": 1, "quantity": 1 } ], "translations": { "additionalProperty": { "name": "example", "descriptionComplexFields": [ { "name": "example", "description": "example" } ], "productProperties": [ { "name": "example", "value": "example" } ] } }, "vatSymbol": "example", "additionalEans": [ { "id": "example", "ean": "example", "quantity": 1, "description": "example" } ] } ] }'

Masowo aktualizuje wskazane pola w wielu produktach.

object
updates
Array<object>
nullable
object
id
integer format: int64
name
string
nullable
catalogId
integer format: int64
manufacturerId
integer format: int64
nullable
sku
string
nullable
ean
string
nullable
weight
number format: double
height
number format: double
width
number format: double
length
number format: double
vat
number format: double
categoryId
integer format: int64
nullable
skipCategoryUpdate
boolean
parentId
integer format: int64
nullable
skipParentUpdate
boolean
isBundle
boolean
nullable
stocks
Array<object>
nullable
object
id
string
nullable
quantity
integer format: int32
locationName
string
nullable
vatAmount
number format: double
nullable
warehouseId
integer format: int64
nullable
vatSymbol
string
nullable
productPriceGroups
Array<object>
nullable
object
priceGroupId
integer format: int64
price
number format: double
isAsteriskMarked
boolean
nullable
overrideAllStocks
boolean
properties
Array<object>
nullable
object
id
string
nullable
name
string
nullable
value
string
nullable
externalId
string
nullable
productLinks
Array<object>
nullable
object
id
integer format: int64
nullable
externalProductId
string
nullable
externalVariantId
string
nullable
externalConnectionId
string
nullable
connectionId
integer format: int64
complexFields
Array<object>
nullable
object
name
string
nullable
value
string
nullable
bundleItems
Array<object>
nullable
object
bundleItemProductId
integer format: int64
quantity
integer format: int32
translations
object
key
additional properties
object
name
string
nullable
descriptionComplexFields
Array<object>
nullable
object
name
string
nullable
description
string
nullable
productProperties
Array<object>
nullable
object
name
string
nullable
value
string
nullable
vatSymbol
string
nullable
additionalEans
Array<object>
nullable
object
id
string
nullable
ean
string
nullable
quantity
integer format: int32
description
string
nullable
Examplegenerated
{
"updates": [
{
"id": 1,
"name": "example",
"catalogId": 1,
"manufacturerId": 1,
"sku": "example",
"ean": "example",
"weight": 1,
"height": 1,
"width": 1,
"length": 1,
"vat": 1,
"categoryId": 1,
"skipCategoryUpdate": true,
"parentId": 1,
"skipParentUpdate": true,
"isBundle": true,
"stocks": [
{
"id": "example",
"quantity": 1,
"locationName": "example",
"vatAmount": 1,
"warehouseId": 1,
"vatSymbol": "example"
}
],
"productPriceGroups": [
{
"priceGroupId": 1,
"price": 1
}
],
"isAsteriskMarked": true,
"overrideAllStocks": true,
"properties": [
{
"id": "example",
"name": "example",
"value": "example",
"externalId": "example"
}
],
"productLinks": [
{
"id": 1,
"externalProductId": "example",
"externalVariantId": "example",
"externalConnectionId": "example",
"connectionId": 1
}
],
"complexFields": [
{
"name": "example",
"value": "example"
}
],
"bundleItems": [
{
"bundleItemProductId": 1,
"quantity": 1
}
],
"translations": {
"additionalProperty": {
"name": "example",
"descriptionComplexFields": [
{
"name": "example",
"description": "example"
}
],
"productProperties": [
{
"name": "example",
"value": "example"
}
]
}
},
"vatSymbol": "example",
"additionalEans": [
{
"id": "example",
"ean": "example",
"quantity": 1,
"description": "example"
}
]
}
]
}

Success

Array<integer>