Duplicate a component within the library
Creates a copy of an existing library 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. Recalculates conditions and timeframes. Only library components (projectId is null) can be duplicated through this endpoint.
/administration/project-components/components/{id}/duplicateAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredidstringrequiredComponent UUID to duplicate
fieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced 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.
compactfullLT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
fullComponent duplicated successfully
idstringrequiredUUID of the newly created duplicate component
Invalid component ID format (not a valid UUID)
Unauthorized - Invalid or missing authentication token
Insufficient permissions to edit component library
Component not found or does not belong to library (has projectId)