security-protect-item-by-id
Protect a Sitecore item by its ID to prevent unauthorized access or modifications. Specify the item ID and database to apply security restrictions.
Instructions
Protect a Sitecore item by its ID.
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": {
"id": "<id>"
},
"name": "security-protect-item-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to protect | |
| 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) |