Skip to main content
POST
/
stores
/
{storeId}
/
products
/
{productId}
/
duplicate
Duplicate product
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>"
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The ID of the store.

productId
string<uuid>
required

The ID of the product to duplicate.

Body

application/json

The Komerza.Common.Forms.Products.DuplicateProductForm with duplication details.

Form for duplicating a product

name
string
required

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

Required string length: 3 - 64

Response

The operation was successfully completed.

Represents a default generic response for API endpoints.

success
boolean
required

Indicates whether the operation or response was successful.

message
string | null

A descriptive message providing additional context or information about the response.

code
string | null

The error code (if there was an error) to use when referencing the error

data
any | null

The data object encapsulated within the response, representing the core output of the API operation