security-lock-item-by-path
Lock Sitecore content items by specifying their path to prevent unauthorized edits. Use force option to override existing locks and maintain content integrity during collaborative workflows.
Instructions
Lock a Sitecore item by its path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "security-lock-item-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path of the item to lock (e.g. /sitecore/content/Home) | |
| force | No | If set to true, will force the lock even if the item is locked by another user | |
| passThru | No | If set to true, passes the processed object back to the pipeline | |
| database | No | The database containing the item (defaults to the context database) |