Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Duplicate a component within the same project

Creates a copy of an existing component including all nested data (items, questions, todos, test cases, and conditions). The duplicated component is automatically named with “(Copy)” suffix and placed immediately after the original component in the sort order. Condition references are automatically updated to point to the new duplicated items. Triggers project configuration change tracking and recalculates conditions and timeframes.

POST/projects/{projectId}/components/{id}/duplicate
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstringrequired
Project UUID
idstringrequired
Component UUID 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
201Component duplicated successfully
idstringrequired
UUID of the newly created duplicate component
400Invalid component ID format (not a valid UUID)
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to manage components or no access to project
404Component not found or does not belong to the specified project
Request
curl -X POST "https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/components/e57dc37b-7693-4d06-b49c-17084b773aff/duplicate" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}