Users.dataSources.datasets: delete

针对开始时间和结束时间与数据集 ID 指定的时间范围重叠的所有数据点执行包含式删除操作。对于大多数数据类型,系统会删除整个数据点。对于时间跨度表示一致的值的数据类型(例如 com.google.activity.segment),并且数据点跨越数据集的任意端点,则只有数据点的重叠部分会被删除。立即试用

请求

HTTP 请求

DELETE https://www.googleapis.com/fitness/v1/users/userId/dataSources/dataSourceId/datasets/datasetId

参数

参数名称 说明
路径参数
dataSourceId string 创建数据集的数据源的 ID。
datasetId string 数据集标识符,是最低数据点开始时间和最大数据点结束时间的组合(表示为从公元纪年开始到纳秒为单位)。ID 的格式为:startTime-endTime,其中 startTimeendTime 为 64 位整数。
userId string 删除所识别的人员的数据集。使用 me 表示经过身份验证的用户。目前仅支持 me

授权

此请求需要获得以下至少一个范围的授权:

范围
https://www.googleapis.com/auth/fitness.activity.write
https://www.googleapis.com/auth/fitness.location.write
https://www.googleapis.com/auth/fitness.body.write
https://www.googleapis.com/auth/fitness.nutrition.write
https://www.googleapis.com/auth/fitness.blood_pressure.write
https://www.googleapis.com/auth/fitness.blood_glucose.write
https://www.googleapis.com/auth/fitness.oxygen_saturation.write
https://www.googleapis.com/auth/fitness.body_temperature.write
https://www.googleapis.com/auth/fitness.reproductive_health.write

如需了解详情,请参阅身份验证和授权页面。

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法将返回空的响应正文。

试试看!

请使用下面的 API Explorer 针对实际数据调用此方法并查看响应。