---
title: "POST /v4/{+parent}/dataPoints:rollUp"
method: POST
path: "/v4/{+parent}/dataPoints:rollUp"
tags: ["users"]
---

# POST /v4/{+parent}/dataPoints:rollUp

`POST /v4/{+parent}/dataPoints:rollUp`

Roll up data points over physical time intervals for supported data types.

## Path parameters

- `parent` string, required

## Request body

- RollUpDataPointsRequest — Request to roll up data points by physical time intervals.
  - `pageToken` string — Optional. The next_page_token from a previous request, if any. All other request fields need to be the same as in the initial request when the page token is specified.
  - `windowSize` string, google-duration — Required. The size of the time window to group data points into before applying the aggregation functions. Must be at least 1 second.
  - `range` Interval — Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
    - `startTime` string, google-datetime — Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
    - `endTime` string, google-datetime — Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
  - `pageSize` integer — Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly.
  - `dataSourceFamily` string — Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/me/dataSourceFamilies/{data_source_family}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - default value - `users/me/dataSourceFamilies/google-wearables` - tracker devices - `users/me/dataSourceFamilies/google-sources` - Google first party sources

## Response `200`

Successful response

---

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