Update Worksheet Validation Using Aspose.Cells Cloud API
This REST API updates a worksheet validation by its index on an Excel worksheet.
Before calling this endpoint, obtain a JWT access token with the appropriate scopes (e.g., Cells.ReadWrite). Include the token in the Authorization header as shown in the examples.
REST API
POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/validations/{validationIndex}
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | The name of the workbook file. |
| sheetName | string | path | The name of the worksheet that contains the validation. |
| validationIndex | integer | path | The zero‑based index of the validation to be updated. |
| validation | object | body | A JSON object that defines the updated validation settings. |
| folder | string | query | The folder in cloud storage where the workbook is located. |
| storageName | string | query | The name of the storage service (if a custom storage is used). |
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 call Aspose.Cells web services easily. The following example shows how to make a call to the Cloud API with cURL.
Possible HTTP status codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Validation was updated successfully. |
| 400 | Bad Request | The request is malformed or missing required parameters. |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 403 | Forbidden | The token does not have sufficient scopes. |
| 404 | Not Found | The specified workbook, worksheet, or validation index does not exist. |
| 500 | Internal Server Error | An unexpected error occurred on the server. |
For more details on handling errors, refer to the Aspose.Cells Cloud error documentation.
You may also want to explore related operations such as adding a new validation or deleting an existing one:
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK abstracts low‑level details, allowing you to focus on your business logic. 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: