Create a new watch. If a watch ID is provided, it must be unused. For each invoking project, the per form limit is one watch per Watch.EventType. A watch expires seven days after it is created (see Watch.expire_time).
HTTP request
POST https://forms.googleapis.com/v1/forms/{formId}/watches
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
formId |
Required. ID of the Form to watch. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"watch": {
object ( |
| Fields | |
|---|---|
watch |
Required. The watch object. No ID should be set on this object; use |
watchId |
The ID to use for the watch. If specified, the ID must not already be in use. If not specified, an ID is generated. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
Response body
If successful, the response body contains a newly created instance of Watch.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/forms.bodyhttps://www.googleapis.com/auth/forms.body.readonlyhttps://www.googleapis.com/auth/forms.responses.readonly
For more information, see the Authorization guide.