security-set-item-protection
Protect or unprotect Sitecore items from deletion and renaming via the action parameter. Independent of editing lock.
Instructions
Protects or unprotects a Sitecore item against deletion and renaming. Independent of the editing lock — use security-set-item-lock for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item. Supply this or path. | |
| full | No | Return the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only. | |
| path | No | The path of the item (e.g. /sitecore/content/Home). Supply this or id. | |
| action | Yes | Whether to protect the item or remove its protection. | |
| fields | No | Extra Sitecore field names to include, e.g. ['Title']. Ignored when full is true. | |
| database | No | Database to resolve an id against (default master). | |
| passThru | No | Return the item, projected to its identity. |