Zduplikuj produkt
POST
/api/products/v2/duplicate
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/duplicate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"productId":1}'};
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/duplicate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "productId": 1 }'Tworzy kopię istniejącego produktu i zwraca identyfikator nowego produktu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
productId
integer format: int64
Examplegenerated
{ "productId": 1}object
productId
integer format: int64
Examplegenerated
{ "productId": 1}object
productId
integer format: int64
Examplegenerated
{ "productId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
product
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
object
product
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
Example
{ "product": { "productPriceGroups": [ { "currency": "None" } ] }}object
product
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
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
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
Example
{ "product": { "productPriceGroups": [ { "currency": "None" } ] }}Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
