authoring-copy-item
Copy a Sitecore item or its full subtree to another parent through the Authoring API; specify source by ID or path and destination by parent ID or path.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "authoring-copy-item"
}
}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. |