Object Exists API – Verify File or Folder Presence in Aspose.Cells Cloud
Excel API: Object Exists
The Object Exists API lets developers determine whether a specific file or folder is present in Aspose.Cells Cloud storage. It returns a simple Boolean indicating existence and whether the path points to a folder.
Web API
GET https://api.aspose.cloud/v5.0/cells/storage/exist/{path}
{path} is the full path to the file or folder in storage.
Request Parameters
| Parameter Name | Type | Location | Required | Description |
|---|---|---|---|---|
path |
string | Path | Yes | Full path to the file or folder. |
storageName |
string | Query | No | Name of the storage; defaults to the primary storage if omitted. |
versionId |
string | Query | No | Specific version identifier of the file (if versioning is enabled). |
Response Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | The request succeeded; response body contains result. |
| 401 | Unauthorized | Missing or invalid authentication token. |
| 404 | Not Found | The specified path does not exist. |
| 500 | Internal Server Error | An unexpected error occurred on the server. |
Response Description
A successful call returns a JSON payload with two properties:
{
"Exists": true,
"IsFolder": false
}
- Exists –
trueif the file or folder exists; otherwisefalse. - IsFolder –
truewhen the path points to a folder;falsefor a file.
Notes / Limitations
- Rate limits are applied per account; consult the Rate Limits page for exact values.
- If
storageNameis omitted, the default storage configured for the account is used. - The API currently supports version 5.0; older version paths (
/v4.0/) are deprecated.
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you 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 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: