Cloud-based Excel File Management Solution – Detailed Explanation of Aspose.Cells Copy Folder API’s Batch Copy Functionality
The CopyFolder API duplicates an existing folder within Aspose.Cells Cloud storage. This is useful for creating backups, reorganising data, or preparing a folder hierarchy for further processing without manual file moves.
Excel API: Copy Folder
Web API
PUT https://api.aspose.cloud/v4.0/cells/storage/folder/copy/{srcPath}
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
The CopyFolder API accepts the following parameters
| Parameter Name | Required | Type | Location (Path/Query) | Description |
|---|---|---|---|---|
srcPath |
Yes | String | Path | The path of the source folder to copy. |
destPath |
Yes | String | Query | The path where the new folder will be created. |
srcStorageName |
No | String | Query | The name of the storage that contains the source folder. |
destStorageName |
No | String | Query | The name of the destination storage where the folder should be copied. |
Sample Response
A successful call returns HTTP 200 with an empty JSON body:
{}
Sample cURL request
curl -X PUT "https://api.aspose.cloud/v4.0/cells/storage/folder/copy/MyFolder?destPath=MyFolderCopy" \
-H "Authorization: Bearer {access_token}"
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. |
OpenAPI 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.
Using an SDK is the best way to speed up development. An SDK takes care of 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 make calls to Aspose.Cells web services using various SDKs: