Remove Duplicate Rows from a ListObject – Aspose.Cells Cloud API Documentation
Contents
[
Hide
]
This REST API removes duplicate rows from a ListObject in an Excel worksheet.
REST API
POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/RemoveDuplicates
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | String | Path | The name of the Excel file. |
| sheetName | String | Path | The name of the worksheet that contains the list object. |
| listObjectIndex | Integer | Path | The zero‑based index of the list object to process. |
| folder | String | Query | (Optional) The folder path where the file is stored. |
| storageName | String | Query | (Optional) The name of the storage service. |
Sample Request (cURL)
Response
On success the service returns a JSON object similar to the example above. The fields are:
- Code – HTTP status code (
200for success). - Status – Textual description of the status.
- DuplicateRowsRemoved – Number of rows that were eliminated.
- Message – Additional information about the operation.
Error Codes
| HTTP Status | Meaning | When it occurs |
|---|---|---|
| 400 | Bad Request | Missing or invalid parameters. |
| 401 | Unauthorized | No token supplied or token is expired/invalid. |
| 404 | Not Found | Specified file, worksheet, or list object does not exist. |
| 500 | Internal Server Error | Unexpected server‑side failure. |
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 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: