Unprotect Excel Workbook – Aspose.Cells Cloud API

REST API

Use this REST API to unprotect an Excel workbook.

DELETE https://api.aspose.cloud/v3.0/cells/{name}/protection

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

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"
}

Https status 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.

How to Use the DeleteUnProtectWorkbook API with SDKs

DeleteUnProtectWorkbook API Specification

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 make calls to the Cloud API with cURL.

Use Aspose.Cells Cloud SDKs

Using an SDK simplifies integration and reduces boiler‑plate code. 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: