Menu
Copy an existing product
Copy an existing product
POST
/products/{productIdentifier}/copyUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Copy an existing product action (under Products).
- Fill in the fields below, then reference the result from later steps as
{{copyAnExistingProduct.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"referenceKey": "M0001-blue",
"variants": [
{
"sourceReferenceKey": "M0001-black-S",
"referenceKey": "M0001-blue-S"
}
],
"master": {
"referenceKey": "M0002"
},
"merchantReferenceKeys": [
"merchant-1"
],
"images": [
{
"sourceReferenceKey": "M0001-front",
"referenceKey": "M0001-blue-front"
}
],
"copyPrices": false,
"copyStocks": false
}
Response
Returns 201 with an object. Read it in later steps with {{copyAnExistingProduct.response.data.<field>}}.
{
"referenceKey": "M0001-black",
"name": {
"de_DE": "Blaues Hemd",
"en_GB": "Blue Shirt"
},
"master": {
"referenceKey": "M0001",
"categories": {
"paths": [
[
[
"Fashion",
"Men",
"Shirts"
]
]
],
"isLocked": false
},
"attributes": [
{
"name": "string",
"type": "simple",
"value": null,
"isLocked": false,
"shopCountrySpecific": [
{
"shopKey": "ms",
"countryCode": "DE",
"value": null,
"isLocked": false
}
]
}
]
},
"state": "live",
"id": 0,
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"lastContentUpdatedAt": "2025-01-01T00:00:00Z",
"problems": [
"system: product has no image"
],
"attributes": [
{
"name": "string",
"type": "simple",
"value": null,
"isLocked": false,
"shopCountrySpecific": [
{
"shopKey": "ms",
"countryCode": "DE",
"value": null,
"isLocked": false
}
]
}
],
"variants": [
{
"referenceKey": "M0001-black-M",
"id": 0,
"merchantReferenceKeys": [
"string"
],
"ean": "0000007619991",
"attributes": [
{
"name": "size",
"type": "simple",
"value": "M",
"isLocked": false
}
],
"prices": [
{
"price": 9999,
"tax": 19,
"countryCode": "DE",
"currencyCode": "EUR",
"key": "1-100",
"oldPrice": 10999,
"recommendedRetailPrice": 9999,
"buyingPrice": 9999,
"groupKey": "myPriceGroup",
"promotionKey": "myPromotion",
"unitPrice": {
"unit": "ml",
"amount": 100,
"price": 999
},
"validFrom": "2021-09-23T11%3A30%3A58%2B00%3A00"
}
],
"stocks": [
{
"quantity": 27,
"warehouseReferenceKey": "DefaultWarehouse",
"changedAt": "2020-07-23T11%3A30%3A58%2B00%3A00",
"sellableWithoutStock": true,
"merchantReferenceKey": "string",
"expectedAvailabilityAt": "2020-07-23"
}
],
"customData": null,
"isComposite": false,
"relatedVariants": null
}
],
"images": [
{
"id": 0,
"referenceKey": "my_original_name.jpg",
"name": "image.jpg",
"mimeType": "string",
"position": 3,
"shopCountrySpecific": [
{
"shopKey": "ms",
"countryCode": "de",
"position": 0
}
],
"source": {
"url": "https://example.com/image.png",
"attachment": "U3dhZ2dlciByb2Nrcw=="
},
"assetUrl": "images/my_image.jpg",
"attributes": [
{
"name": "view",
"type": "simple",
"value": "front",
"isLocked": true
}
],
"customData": null
}
]
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?