forms.forms.watches.renew
Renew a Google Forms watch to extend its active period by seven days, reset its expiry, and restore suspended watches when the underlying error is resolved.
Instructions
Renew an existing watch for seven days. The state of the watch after renewal is ACTIVE, and the expire_time 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, RenewWatch returns NOT_FOUND [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON RenewWatchRequest object; pass it via params or whole via body_file Siblings over the same resource: create, delete, list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| formId | Yes | [URL path segment] Required. The ID of the Form. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| watchId | Yes | [URL path segment] Required. The ID of the Watch to renew. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON RenewWatchRequest object. | |
| request_body | No | Request body of type RenewWatchRequest: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| state | No | ||
| target | No | ||
| errorType | No | ||
| eventType | No | ||
| createTime | No | ||
| expireTime | No |