authoring-copy-item
Copies a Sitecore item and its subtree to a new parent via the Authoring and Management API. Specify source by ID or path and destination parent by ID or path; set deepCopy false to copy only the item.
Instructions
Copies a Sitecore item to another parent over the Authoring and Management API. Copies the whole subtree by default; set deepCopy false to copy the item alone. Supply exactly one of id or path for the source, and exactly one of targetParentId or targetParentPath for the destination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The source item's GUID. Supply this or path. | |
| path | No | The source item's full path. Supply this or id. | |
| database | No | The database holding the item. Defaults to master. | |
| deepCopy | No | When false, copy only the item itself. Defaults to true (the whole subtree). | |
| copyItemName | No | The name for the copy. Defaults to Sitecore's own 'Copy of ...' naming. | |
| targetParentId | No | The GUID of the parent to copy into. Supply this or targetParentPath. | |
| targetParentPath | No | The path of the parent to copy into. Supply this or targetParentId. |