Чтобы предоставить создателям форм больше контроля над тем, кто может отвечать, мы вводим детальный контроль для респондентов. Формы, созданные с помощью API после 31 января 2026 года, по умолчанию будут иметь неопубликованное состояние. Чтобы узнать больше, см.
Изменения API в Google Forms .
Method: forms.watches.renew
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[],["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)."]]