How to Save a Spreadsheet as Another Format File on Remote Storage: Step‑by‑Step Guide
Save a cloud spreadsheet or Excel file as a different format in cloud storage.
Save Spreadsheet as API
Web API
PUT https://api.aspose.cloud/v4.0/cells/{name}/saveas
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | String | Path | Required. The name of the workbook file to be converted. |
| format | String | Query | Required. The desired output format (e.g., Xlsx, PDF, CSV). |
| saveOptionsData | Class | Body | Optional save‑options data. If omitted, defaults to null. |
| folder | String | Query | Optional folder path where the source workbook is stored. If omitted, defaults to null. |
| storageName | String | Query | Optional name of a custom storage. If omitted, the default storage is used. |
| outPath | String | Query | Optional output path for the converted file. If omitted, defaults to null. |
| outStorageName | String | Query | Optional storage name for the output file. |
| fontsLocation | String | Query | Optional custom fonts location. |
| region | String | Query | Optional spreadsheet region setting. |
| password | String | Query | Optional password for opening the spreadsheet file. |
Supported output formats
| Format | Extension |
|---|---|
| Xlsx | .xlsx |
| Csv | .csv |
| Html | .html |
| Ods | .ods |
| Xls | .xls |
| Txt | .txt |
| Mhtml | .mhtml |
| Tiff | .tiff |
| Pptx | .pptx |
| … (more) | See API spec for the full list (over 20 formats) |
Response
{
"Code": 200,
"Status": "OK"
}
Sample error response (400 Bad Request)
{
"Code": 400,
"Message": "Invalid request parameters."
}
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
Where should you use the Save Spreadsheet API?
Enterprise Document Management System
- Automatically save financial reports as PDF archives.
- Regularly back up sales data in CSV format.
- Save project plans as read‑only files to prevent accidental changes.
Data Integration and ETL Processes
- Export CRM system data and save it as a standard Excel template.
- Convert ERP data to CSV for import into other systems.
- Save raw data as JSON for API transmission.
Development and Automation Scenarios
- Backend processing for web applications.
- Automated report‑generation systems.
- Cloud collaboration platforms.
- Approval‑process integration.
- Data backup and migration.
Why should you use the Save Spreadsheet API?
- Developer‑Friendly – Provides SDKs for multiple languages with detailed documentation, simplifying integration.
- Labor‑Efficient – Handles conversion on the server, reducing the need for custom conversion code.
- Usage‑Based Pricing – Charges only for the API calls performed, without upfront licensing fees.
- No Server Maintenance – The service runs in the cloud, removing the need to manage conversion infrastructure.
- Extensive Format Support – Supports conversion among more than 20 spreadsheet formats.
- Data Fidelity – Preserves layout, formulas, and styling during conversion.
How to Use the Save Spreadsheet as API with SDKs?
Save Spreadsheet as API Specification
The Save Spreadsheet as API Specification defines a publicly accessible programming interface, allowing you to perform REST interactions directly from a web browser.
Example with request body and curl
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 fastest way to develop, as it abstracts low‑level details and lets you save a spreadsheet as another format with minimal 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: