Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Duplicate product

Creates a copy of an existing product within the same project. Useful when you need the same product multiple times with different configurations or for different time periods.

What gets duplicated:

  • All product details (name, description, category, logo)
  • All pricing information
  • All variants and their configurations
  • All options and option values
  • Current quantity and settings

Use cases:

  • Same product with different active date ranges
  • Same product with different variant/option selections
  • Multiple instances of a product in one project

Returns the ID of the newly created duplicate product.

POST/projects/{projectId}/products/{productId}/duplicate
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstring<uuid>required
Project ID
productIdstring<uuid>required
Product ID to duplicate
Query parameters
fieldsToReturnstring
Comma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestring
Advanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:compactfull
Header parameters
LT-Response-Shapestring
Advanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:full
Responses
201Product duplicated successfully
successbooleanrequired
Operation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient permissions or no project access
404Not Found - Product or project does not exist
Request
curl -X POST "https://leadtime.app/api/public/projects/%3Cuuid%3E/products/%3Cuuid%3E/duplicate" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}