为了让表单创建者能够更好地控制哪些人可以回复,我们将为回复者引入精细的控制功能。2026 年 1 月 31 日之后使用该 API 创建的表单将默认处于未发布状态。如需了解详情,请参阅
Google 表单的 API 变更。
Method: forms.watches.renew
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["To renew a watch, send a `POST` request to `https://forms.googleapis.com/v1beta/forms/{formId}/watches/{watchId}:renew` with an empty request body. The `formId` and `watchId` are required path parameters. Successful renewal sets the watch state to `ACTIVE` with an expiration seven days out. Renewing a watch in error may fail if the error persists. An expired watch will return `NOT_FOUND`. Success returns a `Watch` instance, and requires specified OAuth scopes for authorization.\n"],null,["# Method: forms.watches.renew\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nRenew an existing watch for seven days. The [state](/forms/api/reference/rest/v1beta/forms.watches#Watch.FIELDS.state) of the watch after renewal is `ACTIVE`, and the `expireTime` is seven days from the renewal. Renewing a watch in an error state (e.g. `SUSPENDED`) succeeds if the error is no longer present, but fail otherwise. After a watch has expired, watches.renew returns `NOT_FOUND`.\n\n### HTTP request\n\n`POST https://forms.googleapis.com/v1beta/forms/{formId}/watches/{watchId}:renew`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|--------------------------------------------------|\n| `formId` | `string` Required. The ID of the Form. |\n| `watchId` | `string` Required. The ID of the Watch to renew. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Watch](/forms/api/reference/rest/v1beta/forms.watches#Watch).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.file`\n- `\n https://www.googleapis.com/auth/drive.readonly`\n- `\n https://www.googleapis.com/auth/forms.body`\n- `\n https://www.googleapis.com/auth/forms.body.readonly`\n- `\n https://www.googleapis.com/auth/forms.responses.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]