Watch

Subscribes to changes to a file

15 variables
11 variables

Subscribes to changes to a file

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, edit, create, and delete all of your Google Drive files
  • View and manage its own configuration data in your Google Drive
  • View and manage Google Drive files and folders that you have opened or created with this app
  • View and manage metadata of files in your Google Drive
  • View metadata for files in your Google Drive
  • View the photos, videos and albums in your Google Photos
  • See and download all your Google Drive files

Input

This building block consumes 15 input parameters

  = Parameter name
  = Format

fileId STRING Required

The ID of the file

acknowledgeAbuse BOOLEAN

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media

supportsAllDrives BOOLEAN

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives

supportsTeamDrives BOOLEAN

Deprecated use supportsAllDrives instead

address STRING

The address where notifications are delivered for this channel

expiration INTEGER

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional

id STRING

A UUID or similar unique string that identifies this channel

kind STRING

Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel"

params OBJECT

Additional parameters controlling delivery channel behavior. Optional

params.customKey.value STRING Required

Additional parameters controlling delivery channel behavior. Optional

payload BOOLEAN

A Boolean value to indicate whether payload is wanted. Optional

resourceId STRING

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions

resourceUri STRING

A version-specific identifier for the watched resource

token STRING

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional

type STRING

The type of delivery mechanism used for this channel

Output

This building block provides 11 output parameters

  = Parameter name
  = Format

address STRING

The address where notifications are delivered for this channel

expiration INTEGER

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional

id STRING

A UUID or similar unique string that identifies this channel

kind STRING

Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel"

params OBJECT

Additional parameters controlling delivery channel behavior. Optional

params.customKey.value STRING

Additional parameters controlling delivery channel behavior. Optional

payload BOOLEAN

A Boolean value to indicate whether payload is wanted. Optional

resourceId STRING

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions

resourceUri STRING

A version-specific identifier for the watched resource

token STRING

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional

type STRING

The type of delivery mechanism used for this channel