v1

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

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

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

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 DailyRollupDataPoint value union field.

Request body

windowSizeDaysinteger

Optional. Aggregation window size, in number of days. Defaults to 1 if not specified.

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

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.

Response

Successful response