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,包含最短資料點開始時間和最長資料點結束時間,以週期的奈秒表示。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

詳情請參閱「驗證和授權」網頁。

要求主體

請勿使用這個方法提供要求主體。

回覆

如果成功的話,這個方法會傳回空白的回應內文。

試試看!

使用下方的 APIs Explorer,針對有效資料呼叫這個方法,然後查看回應。