common-update-item-referrer
Relink every reference to a Sitecore item to a new target, or remove all links to it, by ID or path. Resolve broken or outdated item links across a database.
Instructions
Updates all references to the specified item to point to a new provided in the -NewTarget or removes links to the item.
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": "common-update-item-referrer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to be relinked. Supply this or path. | |
| path | No | The path of the item to be relinked. Supply this or id. | |
| database | No | Database to resolve an id against (default master). | |
| language | No | The language of the item. | |
| newTarget | No | The path to a new item the links should be pointing to. | |
| removeLink | No | Removes all links to the current target item. |