Protect the Spreadsheet with password
Contents
[
Hide
]
Applies password protection to Excel spreadsheets, supporting both open and modify passwords.
Protect Spreadsheet API
PUT http://api.aspose.cloud/v4.0/cells/protection/spreadsheet
Request Parameters:
Parameter Name | Type | Path/Query String/HTTPBody | Description |
---|---|---|---|
Spreadsheet | File | FormData | Upload the spreadsheet file to be protected. |
password | String | Query | Encryption password for the spreadsheet file. |
modifyPassword | String | Query | Password required to modify the spreadsheet. |
outPath | String | Query | (Optional) The folder path where the protected workbook will be stored. The default is null. |
outStorageName | String | Query | Name of the storage for output files. |
region | String | Query | Defines the region settings for the spreadsheet. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream",
"Name": "file"
}
}
]
Error Codes
- 400 Bad Request: Invalid Apose.Cells Cloud API URI.
- 401 Unauthorized: Invalid access token. Or invalid client id and secret.
- 404 Not Found: The spreadsheet file not accessible.
- 500 Server Error: The spreadsheet has encountered an anomaly in obtaining calculation data.
Where should we use the Protect Spreadsheet API?
When you need to lock spreadsheet with password, you can use this API.
Why should you use the Protect Spreadsheet API?
- Quickly lock spreadsheets with password.
- Development can be quickly completed through the existing SDK.
How to Use the Protect Spreadsheet API with SDKs
OpenAPI Specification
The OpenAPI Specification provides a detailed programming interface for executing REST interactions directly from a web browser.
Use Aspose.Cells Cloud SDKs
Using the SDK is the best way to accelerate development. The SDK handles the underlying details, allowing you to simply implement protect spreadsheets for cells with minimal code. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to interact with Aspose.Cells web services using various SDKs: