Application API
  1. worksheet Row Records
Application API
  • V3 (AI-friendly-beta)
    • Overview
    • Field Type Comparison Table
    • Guidelines for Using Filters
    • Error Code
    • application
      • Get application information
    • worksheet
      • Get worksheet structure information
      • Edit the worksheet
      • Delete worksheets
      • Create worksheet
    • worksheet Row Records
      • Get a list of line records
        POST
      • Get line record details
        GET
      • Update line records
        PATCH
      • Delete line records
        DELETE
      • Get relation records
        GET
      • Create a new row record
        POST
      • Add new line records in batches
        POST
      • Batch update line records
        PATCH
      • Batch delete row records
        DELETE
      • Obtain line record perspective data
        POST
      • Get record sharing links
        POST
      • Get a row record log
        GET
      • Get line record discussion
        GET
    • option set
      • Get a list of option sets
      • Create an option set
      • Edit option set
      • Delete option set
    • workflow
      • Get a list of processes
      • Get process details
      • Trigger process
    • role
      • Get a list of roles
      • create role
      • Get role details
      • remove roles
      • Add role members
      • Remove role members
      • Members withdraw from all roles
    • public query
      • find members
      • Find departments
      • Get regional information
  • V2
    • Development Guide
    • ErrorCode
    • Filter Demo
    • Filter
    • Options Set
      • Add Option Set
      • Get Option Set
      • Edit Option Set
      • Delete Option Set
    • Application Role
      • Get Application Role List GET
      • Create Application Role
      • Delete Application Role
      • Add Application Role Member
      • Remove Application Role Member
      • Exit application
      • Get Role Details
    • worksheet
      • Create Worksheet
      • Get worksheet structure information
      • Get List
      • Create Row Record
      • Batch Create Row Records
      • Get Row Record Details
      • Get row record details
      • Update Row Record Details
      • Batch Update Row Record Details
      • Delete Row Record
      • Get associated record
      • Get Record Share Link
      • Get total row count of worksheet
      • Get Row Record Log
    • app
      • Get Application Information
    • Public Inquiries
      • Get regional Information
    • Get Row Record Discussions
      POST
  1. worksheet Row Records

Obtain line record perspective data

Testing
fromal
https://api.mingdao.com
fromal
https://api.mingdao.com
POST
/v3/app/worksheets/{worksheet_id}/rows/pivot
Get worksheet record pivot summary data

Request

Path Params

Header Params

Body Params application/json

Example
{
    "pageSize": 100,
    "pageIndex": 1,
    "viewId": "",
    "columns": [
        {
            "field": "1a2b3c4d",
            "displayName": "product category",
            "granularity": null
        },
        {
            "field": "2b3c4d5e",
            "displayName": "product name",
            "granularity": null
        },
        {
            "field": "3c4d5e6f",
            "displayName": "sales date",
            "granularity": 2
        }
    ],
    "rows": [
        {
            "field": "4d5e6f7a",
            "displayName": "countries",
            "granularity": null
        },
        {
            "field": "5e6f7a8b",
            "displayName": "areas",
            "granularity": null
        }
    ],
    "values": [
        {
            "field": "6f7a8b9c",
            "displayName": "Total Sales",
            "aggregation": "SUM"
        },
        {
            "field": "7a8b9cad",
            "displayName": "total sales amount",
            "aggregation": "SUM"
        }
    ],
    "filter": {},
    "sorts": [],
    "includeSummary": true
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mingdao.com/v3/app/worksheets//rows/pivot' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageSize": 100,
    "pageIndex": 1,
    "viewId": "",
    "columns": [
        {
            "field": "1a2b3c4d",
            "displayName": "product category",
            "granularity": null
        },
        {
            "field": "2b3c4d5e",
            "displayName": "product name",
            "granularity": null
        },
        {
            "field": "3c4d5e6f",
            "displayName": "sales date",
            "granularity": 2
        }
    ],
    "rows": [
        {
            "field": "4d5e6f7a",
            "displayName": "countries",
            "granularity": null
        },
        {
            "field": "5e6f7a8b",
            "displayName": "areas",
            "granularity": null
        }
    ],
    "values": [
        {
            "field": "6f7a8b9c",
            "displayName": "Total Sales",
            "aggregation": "SUM"
        },
        {
            "field": "7a8b9cad",
            "displayName": "total sales amount",
            "aggregation": "SUM"
        }
    ],
    "filter": {},
    "sorts": [],
    "includeSummary": true
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "meta": {
            "columns": [
                {
                    "field": "1a2b3c4d",
                    "displayName": "product category",
                    "granularity": null
                },
                {
                    "field": "2b3c4d5e",
                    "displayName": "product name",
                    "granularity": null
                },
                {
                    "field": "3c4d5e6f",
                    "displayName": "sales date",
                    "granularity": 2
                }
            ],
            "rows": [
                {
                    "field": "4d5e6f7a",
                    "displayName": "countries",
                    "granularity": null
                },
                {
                    "field": "5e6f7a8b",
                    "displayName": "areas",
                    "granularity": null
                }
            ],
            "values": [
                {
                    "field": "6f7a8b9c",
                    "displayName": "Total Sales",
                    "aggregation": "SUM"
                },
                {
                    "field": "7a8b9cad",
                    "displayName": "total sales amount",
                    "aggregation": "SUM"
                }
            ]
        },
        "pivot": [
            {
                "columns": {
                    "1a2b3c4d": "electronic products",
                    "2b3c4d5e": "product A",
                    "3c4d5e6f": "2023-01"
                },
                "rows": {
                    "4d5e6f7a": "US",
                    "5e6f7a8b": "Washington"
                },
                "values": {
                    "6f7a8b9c": 5000,
                    "7a8b9cad": 500000
                }
            },
            {
                "columns": {
                    "1a2b3c4d": "electronic products",
                    "2b3c4d5e": "product B",
                    "3c4d5e6f": "2023-02"
                },
                "rows": {
                    "4d5e6f7a": "Germany",
                    "5e6f7a8b": "Munich"
                },
                "values": {
                    "6f7a8b9c": 3000,
                    "7a8b9cad": 300000
                }
            },
            {
                "columns": {
                    "1a2b3c4d": "furniture",
                    "2b3c4d5e": "product C",
                    "3c4d5e6f": "2023-03"
                },
                "rows": {
                    "4d5e6f7a": "China",
                    "5e6f7a8b": "Shenzhen"
                },
                "values": {
                    "6f7a8b9c": 2000,
                    "7a8b9cad": 100000
                }
            },
            {
                "columns": {
                    "1a2b3c4d": "furniture",
                    "2b3c4d5e": "product D",
                    "3c4d5e6f": "2023-04"
                },
                "rows": {
                    "4d5e6f7a": "Canada",
                    "5e6f7a8b": "Quebec"
                },
                "values": {
                    "6f7a8b9c": 1000,
                    "7a8b9cad": 50000
                }
            },
            {
                "columns": {
                    "1a2b3c4d": "clothing",
                    "2b3c4d5e": "product E",
                    "3c4d5e6f": "2023-05"
                },
                "rows": {
                    "4d5e6f7a": "France",
                    "5e6f7a8b": "Paris"
                },
                "values": {
                    "6f7a8b9c": 1000,
                    "7a8b9cad": 50000
                }
            }
        ],
        "summary": {
            "6f7a8b9c": 15000,
            "7a8b9cad": 1000000
        },
        "totalPages": 5,
        "currentPage": 1
    },
    "success": true
}
Modified at 2025-08-25 06:56:07
Previous
Batch delete row records
Next
Get record sharing links
Built with