security-lock-item-by-id
Lock Sitecore content items by ID to prevent unauthorized edits, with options to force locks and specify databases.
Instructions
Lock a Sitecore item by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to lock | |
| 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) |