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
Response
Successful response