protect_range
Protect a sheet or range to restrict editing, with options for warnings and allowed editors.
Instructions
Protect a range or entire sheet from editing.
Args: spreadsheet_id: The ID of the spreadsheet sheet: Sheet/tab name range: A1 notation range to protect. Omit to protect the entire sheet. description: Description of the protection warning_only: If True, shows a warning but allows editing editors: List of email addresses allowed to edit
Returns: Result of the protection operation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes | ||
| sheet | Yes | ||
| range | No | ||
| description | No | ||
| warning_only | No | ||
| editors | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |