Per offrire ai creator di moduli un maggiore controllo su chi può rispondere, stiamo introducendo controlli granulari per gli utenti che possono rispondere. I moduli creati con l'API dopo il 31 gennaio 2026 avranno uno stato non pubblicato per impostazione predefinita. Per scoprire di più, consulta la pagina
Modifiche all'API di Moduli Google.
Method: forms.watches.renew
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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)."]]