Skip to main content Skip to complementary content

Get statistics about data

Availability-noteDeprecated
Gets statistics about master data records in a container, including the number of the records and the percentage of the records per each entity.
Request
GET /services/rest/system/stats/data/{container}
Parameters
  • container: This is a String value which represents the name of the container.
  • lang (optional): This is a String value of the language code which specifies the language in which the label of each entity will be returned, for example, en for English. If this parameter is not specified or the label in the specified language does not exist, the name of the entity will be returned.
  • top (optional): This is an integer value which limits the statistics data to the top N entities.
Headers
  • Accept: application/json
  • Authorization: Basic Authentication scheme
Response A JSON response that contains statistics about master data records in the specified container.
Status
  • 200 OK: The operation is executed successfully.
  • 401 UNAUTHORIZED: Login fails, invalid username or password.
  • 404 NO CONTENT: The request contains invalid parameter.
  • 404 NOT FOUND: The resource does not exist.
  • 500 INTERNAL SERVER ERROR: Other errors.

Sample response

{
    "data": [
        {
            "Product": [
                {"count": 9},
                {"percentage": "60"}
            ]
        },
        {
            "Product Family": [
                {"count": 4},
                {"percentage": "26.67"}
            ]
        },
        {
            "Store": [
                {"count": 2},
                {"percentage": "13.33"}
            ]
        }
    ]
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!