Update style for pivot table - Aspose.Cells Cloud API

This REST API updates the style of a pivot table.

PostPivotTableStyle API

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

Prerequisites / Authentication
A valid JWT access token must be supplied in the Authorization header (e.g., Bearer <jwt token>). Ensure the token has permission to access the specified workbook and worksheet.

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request parameters

Parameter Name Type Location Description
name string path The name of the workbook file.
sheetName string path The worksheet that contains the pivot table.
pivotTableIndex integer path Zero‑based index of the pivot table to be formatted.
style object body A style DTO that defines the formatting to apply.
needReCalculate boolean query Set to true to recalculate the pivot table after formatting; default is false.
folder string query The folder where the workbook is stored.
storageName string query The name of the storage service.

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 against the API. The SDK abstracts low‑level details so you can focus on your business logic. See the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code example demonstrates how to call the API using the Go SDK: