Create Folder – Aspose.Cells Cloud API
Contents
[
Hide
]
Excel API: Create Folder
Web API
PUT https://api.aspose.cloud/v4.0/cells/storage/folder/{path}
Function Description
The createFolder operation creates a new folder at the specified location in the cloud storage used by the Excel API. This is essential for organizing files and maintaining a structured directory hierarchy.
The request parameters of createFolder API are
| Parameter Name | Type | Location | Required | Default | Description |
|---|---|---|---|---|---|
path |
String | Path | Yes | – | The folder path to be created (e.g., myFolder/subFolder). |
storageName |
String | Query | No | – | The name of the storage to use. If omitted, the default storage is applied. |
Response Description
{
"message": "Folder created successfully."
}
Error Handling
| HTTP Status | Meaning | Suggested Remedy |
|---|---|---|
| 200 OK / 204 No Content | Folder created successfully. | – |
| 400 Bad Request | Invalid path or missing parameters. |
Verify the path syntax and required fields. |
| 401 Unauthorized | Missing or invalid OAuth token. | Obtain a valid token and include it in the request. |
| 409 Conflict | The folder already exists. | Choose a different folder name or delete the existing one. |
| 500 Internal Server Error | Server‑side problem. | Retry later or contact support. |
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface and allows you to carry out REST interactions directly from a web browser.
Excel API SDK
Using an SDK is the best way to speed up development. An SDK manages 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:
See also
- Delete Folder –
DELETE https://api.aspose.cloud/v4.0/cells/storage/folder/{path} - Copy Folder –
PUT https://api.aspose.cloud/v4.0/cells/storage/folder/{srcPath}/copy