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.
Input Schema
TableJSON 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) |