Modify Password Protection of an Excel Workbook
This REST API changes the write‑protection password of an existing Excel workbook.
REST API
PUT https://api.aspose.cloud/v3.0/cells/{name}/writeProtection
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | Name of the Excel workbook (required). |
| password | string | body (JSON) | New write‑protection password to set (required). |
| folder | string | query | Optional folder where the workbook is stored. |
| storageName | string | query | Optional name of the storage service. |
Authentication
– The API requires an OAuth 2.0 / JWT token. Include the token in the request header:
Authorization: Bearer <jwt token>
The OpenAPI Specification defines the publicly accessible programming interface that lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The cURL command below shows how to call the Cloud API.
Response codes
| HTTP Code | Meaning | Description |
|---|---|---|
| 200 | OK | Password changed successfully. |
| 400 | Bad Request | Missing or invalid parameters. |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 404 | Not Found | Specified workbook does not exist. |
| 500 | Internal Server Error | Unexpected server‑side failure. |
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK handles low‑level details, allowing you to focus on your business logic. Please check 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: