Protect an Excel Workbook
Contents
[
Hide
]
This REST API protects an Excel workbook.
Query Parameters
| Parameter Name | Type | Description |
|---|---|---|
| folder | string | Folder that contains the source workbook. |
| storageName | string | Name of the storage location. |
Request Body Parameters
| Parameter Name | Type | Description |
|---|---|---|
| protection | WorkbookProtectionRequest | Object that defines the protection settings. |
WorkbookProtectionRequest
| Parameter Name | Type | Description |
|---|---|---|
| ProtectionType | string | Type of protection to apply. Allowed values: ALL, CONTENTS, NONE, OBJECTS, SCENARIOS, STRUCTURE, WINDOWS. |
| Password | string | Optional password to set for the protection. |
REST API
| API | Type | Description | Swagger Link |
|---|---|---|---|
| /cells/{name}/protection | POST | Protect a workbook | PostProtectDocument |
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to call the Cloud API with cURL.
Cloud SDK Family
Using an SDK is the fastest way to develop against Aspose.Cells Cloud. An SDK abstracts low‑level details, allowing you to focus on your business logic. See the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: