Zaktualizuj wybrane pola produktów (masowo)
POST
/api/products/v2/products/bulkUpdate
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/bulkUpdate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
updates
Array<object>
object
id
integer format: int64
name
string
catalogId
integer format: int64
manufacturerId
integer format: int64
sku
string
ean
string
weight
number format: double
height
number format: double
width
number format: double
length
number format: double
vat
number format: double
categoryId
integer format: int64
skipCategoryUpdate
boolean
parentId
integer format: int64
skipParentUpdate
boolean
isBundle
boolean
stocks
Array<object>
object
id
string
quantity
integer format: int32
locationName
string
vatAmount
number format: double
warehouseId
integer format: int64
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
price
number format: double
isAsteriskMarked
boolean
overrideAllStocks
boolean
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
bundleItemProductId
integer format: int64
quantity
integer format: int32
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
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" } ] } ]}object
updates
Array<object>
object
id
integer format: int64
name
string
catalogId
integer format: int64
manufacturerId
integer format: int64
sku
string
ean
string
weight
number format: double
height
number format: double
width
number format: double
length
number format: double
vat
number format: double
categoryId
integer format: int64
skipCategoryUpdate
boolean
parentId
integer format: int64
skipParentUpdate
boolean
isBundle
boolean
stocks
Array<object>
object
id
string
quantity
integer format: int32
locationName
string
vatAmount
number format: double
warehouseId
integer format: int64
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
price
number format: double
isAsteriskMarked
boolean
overrideAllStocks
boolean
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
bundleItemProductId
integer format: int64
quantity
integer format: int32
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
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" } ] } ]}object
updates
Array<object>
object
id
integer format: int64
name
string
catalogId
integer format: int64
manufacturerId
integer format: int64
sku
string
ean
string
weight
number format: double
height
number format: double
width
number format: double
length
number format: double
vat
number format: double
categoryId
integer format: int64
skipCategoryUpdate
boolean
parentId
integer format: int64
skipParentUpdate
boolean
isBundle
boolean
stocks
Array<object>
object
id
string
quantity
integer format: int32
locationName
string
vatAmount
number format: double
warehouseId
integer format: int64
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
price
number format: double
isAsteriskMarked
boolean
overrideAllStocks
boolean
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
bundleItemProductId
integer format: int64
quantity
integer format: int32
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
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" } ] } ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<integer>
Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]
