> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DuplicateProjectItems # Package: portfolio # Namespace: ProjectItemsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/portfolio/project-items/duplicate-project-items.md ## Permission Scopes: Manage Portfolio: SCOPE.PORTFOLIO.MANAGE-PORTFOLIO ## Introduction Duplicates project items from one project (the origin) to another project (the target).
Important: Both the origin and target projects must exist before calling this method.--- ## REST API ### Schema ``` Method: duplicateProjectItems Description: Duplicates project items from one project (the origin) to another project (the target).
Important: Both the origin and target projects must exist before calling this method.URL: https://www.wixapis.com/portfolio/project-items/api/v1/items/duplicate Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: originProjectId, targetProjectId Method parameters: param name: originProjectId | type: originProjectId | description: GUID of the project containing the items to duplicate. | required: true param name: targetProjectId | type: targetProjectId | description: GUID of the project where the duplicated items will be added. | required: true Return type: DuplicateProjectItemsResponse - name: projectId | type: string | description: Project GUID where the duplicated items have been added. - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk action metadata. - name: totalSuccesses | type: integer | description: Number of items that were successfully processed. - name: totalFailures | type: integer | description: Number of items that couldn't be processed. - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded. ``` ### Examples ### Duplicate Project Items ```curl curl -X POST \ 'https://www.wixapis.com/api/v1/items/duplicate' \ -H 'Authorization:
Important: Both the origin and target projects must exist before calling this method.# Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: originProjectId, options.targetProjectId, options Method parameters: param name: options | type: DuplicateProjectItemsOptions none | required: true - name: targetProjectId | type: string | description: GUID of the project where the duplicated items will be added. | required: true param name: originProjectId | type: string | description: GUID of the project containing the items to duplicate. | required: true Return type: PROMISE