Object Exists API – Verify File or Folder Presence in Aspose.Cells Cloud

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.

Excel API: Object Exists

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.

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

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).

HTTP Status Codes

HTTP Code HTTP Status Description
200 OK Web API called 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.

Response

A successful call returns a JSON payload with two properties:

{
  "Exists": true,
  "IsFolder": false
}
  • Existstrue if the file or folder exists; otherwise false.
  • IsFoldertrue when the path points to a folder; false for a file.

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. If a Gist fails to load, a static example is provided below each tab.