Add a pivot field into pivot table
Contents
[
Hide
]
This REST API adds a pivot field to an existing pivot table.
REST API
PUT http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/pivottables/{pivotTableIndex}/PivotField
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | Document name. |
| sheetName | string | path | Worksheet name. |
| pivotTableIndex | integer | path | Index of the pivot table. |
| pivotFieldType | string | query | Type of the fields area (e.g., Row, Column). |
| request | object | body | DTO that contains the field indexes to add. |
| needReCalculate | boolean | query | Set to true to recalculate the pivot table after the operation. |
| folder | string | query | Folder where the document is stored. |
| storageName | string | query | Name of the storage. |
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to call Aspose.Cells web services. The example below demonstrates how to add a pivot field using cURL.
Cloud SDK Family
Using an SDK is the fastest way to integrate this functionality. SDKs handle low‑level details, allowing you to focus on your business logic. See 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: