Add Worksheet Comment
This REST API adds a comment to a specific worksheet cell.
REST API
PUT https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/comments/{cellName}
Request Parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | The name of the workbook file. |
| sheetName | string | path | The name of the worksheet. |
| cellName | string | path | The address of the cell (e.g., A1). |
| comment | object | body | The Comment object that contains the comment data. |
| folder | string | query | The folder where the workbook is stored. |
| storageName | string | query | The name of the storage service. |
All production calls must use HTTPS to protect the bearer token and ensure secure transmission.
The OpenAPI Specification defines a publicly accessible programming interface, allowing you to perform 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 call the Cloud API with cURL.
Possible HTTP response codes
| Code | Description |
|---|---|
| 200 | Comment added successfully. |
| 400 | Bad request – missing or invalid parameters. |
| 401 | Unauthorized – invalid or missing authentication token. |
| 404 | Not found – the specified workbook, worksheet, or cell does not exist. |
| 500 | Internal server error – an unexpected condition occurred on the server. |
Sample error response (e.g., 400 Bad Request)
{
"Error": {
"Code": "InvalidParameter",
"Message": "The 'cellName' parameter is missing or malformed."
},
"Code": 400,
"Status": "Bad Request"
}
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can 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 call Aspose.Cells web services using various SDKs: