Method: forms.watches.renew

续订现有手表 7 天。手表续订后的 stateACTIVEexpireTime 为续订后的第 7 天。如果错误不再存在,则续订处于错误状态(例如 SUSPENDED)的监视会成功,否则会失败。手表过期后,watches.renew 会返回 NOT_FOUND

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
formId

string

必需。表单的 ID。

watchId

string

必需。要续订的手表的 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

如需了解详情,请参阅授权指南