curl --request POST \
--url https://api.komerza.com/stores/{storeId}/products/{productId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": "<unknown>"
}Creates a copy of an existing product.
Requires the stores.products.create permission.
curl --request POST \
--url https://api.komerza.com/stores/{storeId}/products/{productId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": "<unknown>"
}Your API key goes here
The ID of the store.
The ID of the product to duplicate.
The Komerza.Common.Forms.Products.DuplicateProductForm with duplication details.
Form for duplicating a product
The name of the product, this is displayed publicly on the store page and marketplace. Must be unique to avoid confusion about which product is new and old
3 - 64The operation was successfully completed.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents the data associated with a response.
Was this page helpful?