Set Cell Value – Aspose.Cells Cloud API Reference (v3.0)

Version Notice: This documentation applies to API version v3.0. Newer versions (e.g., v3.1, v4) may be available; refer to the changelog for the latest information.

This REST API sets the cell value in an Excel file.

REST API

POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/{cellName}

All requests must be sent over HTTPS. The API requires a JWT bearer token obtained from the Aspose Cloud OAuth endpoint. Include the token in the Authorization header as Bearer <jwt token>.

Request parameters

Name Type Location Description
name string path Name of the Excel document (including extension).
sheetName string path Name of the worksheet (case‑sensitive).
cellName string path A1‑style address of the target cell (e.g., A1).
value string query Value to assign to the cell.
type string query Data type of the value (int, string, float, etc.).
formula string query Formula to apply to the cell (optional).
folder string query Folder that contains the document (optional).
storageName string query Name of the storage where the file resides (optional).

The OpenAPI Specification defines a publicly accessible programming interface, which enables developers to invoke REST endpoints directly from a browser or any HTTP client.

You can use the cURL command‑line tool to call Aspose.Cells web services. The example below demonstrates how to set a cell value with cURL.

Error handling

HTTP Status Description Example payload
400 Bad request – missing or invalid parameters. {"Code":400,"Message":"Invalid parameter 'value'."}
401 Unauthorized – JWT token is missing or invalid. {"Code":401,"Message":"Authentication failed."}
404 Not found – the specified file, worksheet, or cell does not exist. {"Code":404,"Message":"Worksheet not found."}
500 Internal server error – unexpected condition on the server. {"Code":500,"Message":"An unexpected error occurred."}

Cloud SDK Family

Using an SDK speeds up development by handling low‑level details so you can focus on your project. See the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples show how to call Aspose.Cells web services with various SDKs: