v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1317143155.1 KB
users

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

post/v4/{+parent}/dataPoints:rollUp

Path parameters

parentstring required

Required. Parent data type of the Data Point collection. Format: users/{user}/dataTypes/{data_type}, e.g.: - users/me/dataTypes/steps - users/me/dataTypes/distance For a list of the supported data types see the RollupDataPoint value union field.

Request body

pageTokenstring

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.

windowSizestring 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.

pageSizeinteger

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.

dataSourceFamilystring

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

Successful response