Method: forms.watches.renew

續訂現有手錶的服務,期限為七天。續約後,手錶的 stateACTIVEexpireTime 則為續約後七天。如果錯誤已不再存在,則在錯誤狀態 (例如 SUSPENDED) 下續訂手錶會成功,否則會失敗。手錶過期後,watches.renew 會傳回 NOT_FOUND

HTTP 要求

POST https://forms.googleapis.com/v1/forms/{formId}/watches/{watchId}:renew

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
formId

string

必要欄位。表單的 ID。

watchId

string

必要欄位。要續約的 Watch 的 ID。

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 Watch 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.readonly
  • https://www.googleapis.com/auth/forms.body
  • https://www.googleapis.com/auth/forms.body.readonly
  • https://www.googleapis.com/auth/forms.responses.readonly

詳情請參閱授權指南