Unlock Excel Files using Aspose.Cells Cloud REST API
This REST API unlocks Excel files.
REST API
POST https://api.aspose.cloud/v3.0/cells/unlock
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
The request parameters are
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| file | file | formData (HTTP body) | File to upload |
| password | string | query string | Password to unlock the file (if protected) |
Response
{
"Status":"OK",
"Code":200
}
Http Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Unlock successful; returns the unlocked file(s) in the response body. |
| 400 | Bad Request | Missing file or invalid parameters. |
| 401 | Unauthorized | Invalid or expired JWT token. |
| 403 | Forbidden | Incorrect password for the protected workbook. |
| 500 | Internal Server Error | An unexpected error occurred on the server. |
How to Use the PostUnlock API with SDKs
PostUnlock 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 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.
Notes
- The API can unlock multiple Excel files in a single request; each file is returned in the
Filesarray of the response. - Ensure your SDK version matches the API version (
v3.0) to avoid compatibility issues.
The following code examples demonstrate how to make calls to Aspose.Cells web services using various SDKs: