---
title: "POST /v1/{+parent}/assets:aggregateValues"
method: POST
path: "/v1/{+parent}/assets:aggregateValues"
tags: ["projects"]
---

# POST /v1/{+parent}/assets:aggregateValues

`POST /v1/{+parent}/assets:aggregateValues`

Aggregates the requested fields based on provided function.

## Path parameters

- `parent` string, required

## Request body

- AggregateAssetsValuesRequest — A request to aggregate one or more values.
  - `showHidden` boolean — Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.
  - `aggregations` Aggregation[] — Array of aggregations to perform. Up to 25 aggregations can be defined.
    - `frequency` AggregationFrequency — Frequency distribution of all field values.
    - `sum` AggregationSum — Sum of field values.
    - `count` AggregationCount — Object count.
    - `field` string — The name of the field on which to aggregate.
    - `histogram` AggregationHistogram — Histogram of bucketed assets counts by field value.
      - `lowerBounds` number[] — Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
  - `filter` string — Optional. The aggregation will be performed on assets that match the provided filter.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/migrationcenter.md) · [All operations](https://skmtc.dev/google/apis/migrationcenter/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/migrationcenter/revisions/2a8b4eea0432/schema)
