Update picture in an Excel file using Aspose.Cells Cloud REST API

This REST API updates a picture, identified by its index, on an Excel worksheet.

Prerequisites: You must have a valid Aspose Cloud JWT token, the target Excel file stored in your Aspose Cloud storage, and use API version 3.0 or later.

REST API

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

Request parameters

Parameter Name Type Location Description
name string path The name of the Excel document.
sheetName string path The name of the worksheet that contains the picture.
pictureIndex integer path Zero-based index of the picture to be updated.
picture object body JSON object that describes the picture properties to update.
folder string query The folder where the document is stored.
storageName string query The name of the storage service.

Note: The picture index is zero‑based. Supported image formats include JPEG, PNG, BMP, and GIF. The maximum picture size is 10 MB.

Error Responses

HTTP Code Description
401 Unauthorized - missing or invalid token.
404 Not Found - the specified file, worksheet, or page-break index does not exist.
400 Bad Request - malformed request syntax or invalid parameters.
500 Internal Server Error - an unexpected condition was encountered.

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 a call to the Cloud API with cURL.

Cloud SDK Family

Using an SDK is the fastest way to develop. 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: