Unprotect Excel Workbook – Aspose.Cells Cloud API
Contents
[
Hide
]
Use this REST API to unprotect an Excel workbook.
REST API
| API | Type | Description | Swagger Link |
|---|---|---|---|
| /cells/{name}/protection | DELETE | Unprotect a document | DeleteUnProtectWorkbook |
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the workbook file (including extension). | Yes |
Query Parameters
| Parameter Name | Type | Description |
|---|---|---|
| folder | string | Path to the folder that contains the original workbook. |
| storageName | string | Name of the storage service where the workbook resides. |
Request Body Parameters
| Parameter Name | Type | Description |
|---|---|---|
| protection | WorkbookProtectionRequest | Object that specifies the protection settings to remove. |
WorkbookProtectionRequest
| Parameter Name | Type | Description |
|---|---|---|
| ProtectionType | string | Type of protection to remove (ALL, CONTENTS, NONE, OBJECTS, SCENARIOS, STRUCTURE, WINDOWS). |
| Password | string | Password required to remove the protection (optional). |
cURL Example
curl -X DELETE "https://api.aspose.cloud/v3.0/cells/test.xlsx/protection?folder=MyFolder&storageName=MyStorage" \
-H "Authorization: Bearer <access_token>" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "ProtectionType": "ALL", "Password": "aspose"}'
Response (Success)
{
"Code": "200",
"Status": "OK"
}
Error Responses
| HTTP Status | Code | Description |
|---|---|---|
| 400 | BadRequest | Missing or invalid parameters. |
| 401 | Unauthorized | Invalid or missing access token. |
| 404 | NotFound | Specified workbook not found in the given folder/storage. |
| 500 | InternalServerError | Unexpected server error. |
Each error returns a JSON object containing Code and Message.
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details and lets you focus on your project tasks. Please check out 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: