v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-136454227.5 KB
files

Subscribes to changes to a file. For more information, see Notifications for resource changes.

post/files/{fileId}/watch

Path parameters

fileIdstring required

The ID of the file.

Query parameters

acknowledgeAbuseboolean

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides.

includeLabelsstring

A comma-separated list of IDs of labels to include in the labelInfo part of the response.

includePermissionsForViewstring

Specifies which additional view's permissions to include in the response. Only published is supported.

supportsAllDrivesboolean

Whether the requesting application supports both My Drives and shared drives.

supportsTeamDrivesboolean

Deprecated: Use supportsAllDrives instead.

Request body

kindstring

Identifies this as a notification channel used to watch for changes to a resource, which is api#channel.

expirationstring int64

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

paramsobject

Additional parameters controlling delivery channel behavior. Optional.

payloadboolean

A Boolean value to indicate whether payload is wanted. Optional.

tokenstring

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

typestring

The type of delivery mechanism used for this channel. Valid values are "web_hook" or "webhook".

addressstring

The address where notifications are delivered for this channel.

resourceIdstring

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

resourceUristring

A version-specific identifier for the watched resource.

idstring

A UUID or similar unique string that identifies this channel.

Response

Successful response