List
|
|||||
|
|
Lists the changes for a user or shared drive
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 12 input parameters
Name | Format | Description |
---|---|---|
pageToken Required |
STRING |
The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method |
driveId |
STRING |
The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier |
includeCorpusRemovals |
BOOLEAN |
Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file |
includeItemsFromAllDrives |
BOOLEAN |
Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results |
includeRemoved |
BOOLEAN |
Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access |
includeTeamDriveItems |
BOOLEAN |
Deprecated use includeItemsFromAllDrives instead |
pageSize |
INTEGER |
The maximum number of changes to return per page |
restrictToMyDrive |
BOOLEAN |
Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive |
spaces |
STRING |
A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos' |
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 |
teamDriveId |
STRING |
Deprecated use driveId instead |
= Parameter name
= Format
pageToken STRING Required The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method |
driveId STRING The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier |
includeCorpusRemovals BOOLEAN Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file |
includeItemsFromAllDrives BOOLEAN Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results |
includeRemoved BOOLEAN Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access |
includeTeamDriveItems BOOLEAN Deprecated use includeItemsFromAllDrives instead |
pageSize INTEGER The maximum number of changes to return per page |
restrictToMyDrive BOOLEAN Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive |
spaces STRING A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos' |
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 |
teamDriveId STRING Deprecated use driveId instead |
Output
This building block provides 225 output parameters
Name | Format | Description |
---|---|---|
changes[] |
OBJECT |
A change to a file or shared drive |
changes[].changeType |
STRING |
The type of the change. Possible values are file and drive |
changes[].drive |
OBJECT |
Representation of a shared drive |
changes[].drive.backgroundImageFile |
OBJECT |
An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set |
changes[].drive.backgroundImageFile.id |
STRING |
The ID of an image file in Google Drive to use for the background image |
changes[].drive.backgroundImageFile.width |
FLOAT |
The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high |
changes[].drive.backgroundImageFile.xCoordinate |
FLOAT |
The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image |
changes[].drive.backgroundImageFile.yCoordinate |
FLOAT |
The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image |
changes[].drive.backgroundImageLink |
STRING |
A short-lived link to this shared drive's background image |
changes[].drive.capabilities |
OBJECT |
Capabilities the current user has on this shared drive |
changes[].drive.capabilities.canAddChildren |
BOOLEAN |
Whether the current user can add children to folders in this shared drive |
changes[].drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction |
BOOLEAN |
Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive |
changes[].drive.capabilities.canChangeDomainUsersOnlyRestriction |
BOOLEAN |
Whether the current user can change the domainUsersOnly restriction of this shared drive |
changes[].drive.capabilities.canChangeDriveBackground |
BOOLEAN |
Whether the current user can change the background of this shared drive |
changes[].drive.capabilities.canChangeDriveMembersOnlyRestriction |
BOOLEAN |
Whether the current user can change the driveMembersOnly restriction of this shared drive |
changes[].drive.capabilities.canComment |
BOOLEAN |
Whether the current user can comment on files in this shared drive |
changes[].drive.capabilities.canCopy |
BOOLEAN |
Whether the current user can copy files in this shared drive |
changes[].drive.capabilities.canDeleteChildren |
BOOLEAN |
Whether the current user can delete children from folders in this shared drive |
changes[].drive.capabilities.canDeleteDrive |
BOOLEAN |
Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive |
changes[].drive.capabilities.canDownload |
BOOLEAN |
Whether the current user can download files in this shared drive |
changes[].drive.capabilities.canEdit |
BOOLEAN |
Whether the current user can edit files in this shared drive |
changes[].drive.capabilities.canListChildren |
BOOLEAN |
Whether the current user can list the children of folders in this shared drive |
changes[].drive.capabilities.canManageMembers |
BOOLEAN |
Whether the current user can add members to this shared drive or remove them or change their role |
changes[].drive.capabilities.canReadRevisions |
BOOLEAN |
Whether the current user can read the revisions resource of files in this shared drive |
changes[].drive.capabilities.canRename |
BOOLEAN |
Whether the current user can rename files or folders in this shared drive |
changes[].drive.capabilities.canRenameDrive |
BOOLEAN |
Whether the current user can rename this shared drive |
changes[].drive.capabilities.canShare |
BOOLEAN |
Whether the current user can share files or folders in this shared drive |
changes[].drive.capabilities.canTrashChildren |
BOOLEAN |
Whether the current user can trash children from folders in this shared drive |
changes[].drive.colorRgb |
STRING |
The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId |
changes[].drive.createdTime |
DATE_TIME |
The time at which the shared drive was created (RFC 3339 date-time) |
changes[].drive.hidden |
BOOLEAN |
Whether the shared drive is hidden from default view |
changes[].drive.id |
STRING |
The ID of this shared drive which is also the ID of the top level folder of this shared drive |
changes[].drive.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#drive" |
changes[].drive.name |
STRING |
The name of this shared drive |
changes[].drive.restrictions |
OBJECT |
A set of restrictions that apply to this shared drive or items inside this shared drive |
changes[].drive.restrictions.adminManagedRestrictions |
BOOLEAN |
Whether administrative privileges on this shared drive are required to modify restrictions |
changes[].drive.restrictions.copyRequiresWriterPermission |
BOOLEAN |
Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive |
changes[].drive.restrictions.domainUsersOnly |
BOOLEAN |
Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive |
changes[].drive.restrictions.driveMembersOnly |
BOOLEAN |
Whether access to items inside this shared drive is restricted to its members |
changes[].drive.themeId |
STRING |
The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile |
changes[].driveId |
STRING |
The ID of the shared drive associated with this change |
changes[].file |
OBJECT |
The metadata for a file |
changes[].file.appProperties |
OBJECT |
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests |
changes[].file.appProperties.customKey.value |
STRING |
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests |
changes[].file.capabilities |
OBJECT |
Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take |
changes[].file.capabilities.canAddChildren |
BOOLEAN |
Whether the current user can add children to this folder. This is always false when the item is not a folder |
changes[].file.capabilities.canChangeCopyRequiresWriterPermission |
BOOLEAN |
Whether the current user can change the copyRequiresWriterPermission restriction of this file |
changes[].file.capabilities.canChangeViewersCanCopyContent |
BOOLEAN |
Deprecated |
changes[].file.capabilities.canComment |
BOOLEAN |
Whether the current user can comment on this file |
changes[].file.capabilities.canCopy |
BOOLEAN |
Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder |
changes[].file.capabilities.canDelete |
BOOLEAN |
Whether the current user can delete this file |
changes[].file.capabilities.canDeleteChildren |
BOOLEAN |
Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canDownload |
BOOLEAN |
Whether the current user can download this file |
changes[].file.capabilities.canEdit |
BOOLEAN |
Whether the current user can edit this file |
changes[].file.capabilities.canListChildren |
BOOLEAN |
Whether the current user can list the children of this folder. This is always false when the item is not a folder |
changes[].file.capabilities.canMoveChildrenOutOfDrive |
BOOLEAN |
Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canMoveChildrenOutOfTeamDrive |
BOOLEAN |
Deprecated - use canMoveChildrenOutOfDrive instead |
changes[].file.capabilities.canMoveChildrenWithinDrive |
BOOLEAN |
Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canMoveChildrenWithinTeamDrive |
BOOLEAN |
Deprecated - use canMoveChildrenWithinDrive instead |
changes[].file.capabilities.canMoveItemIntoTeamDrive |
BOOLEAN |
Deprecated - use canMoveItemOutOfDrive instead |
changes[].file.capabilities.canMoveItemOutOfDrive |
BOOLEAN |
Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added |
changes[].file.capabilities.canMoveItemOutOfTeamDrive |
BOOLEAN |
Deprecated - use canMoveItemOutOfDrive instead |
changes[].file.capabilities.canMoveItemWithinDrive |
BOOLEAN |
Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives |
changes[].file.capabilities.canMoveItemWithinTeamDrive |
BOOLEAN |
Deprecated - use canMoveItemWithinDrive instead |
changes[].file.capabilities.canMoveTeamDriveItem |
BOOLEAN |
Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead |
changes[].file.capabilities.canReadDrive |
BOOLEAN |
Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives |
changes[].file.capabilities.canReadRevisions |
BOOLEAN |
Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read |
changes[].file.capabilities.canReadTeamDrive |
BOOLEAN |
Deprecated - use canReadDrive instead |
changes[].file.capabilities.canRemoveChildren |
BOOLEAN |
Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead |
changes[].file.capabilities.canRename |
BOOLEAN |
Whether the current user can rename this file |
changes[].file.capabilities.canShare |
BOOLEAN |
Whether the current user can modify the sharing settings for this file |
changes[].file.capabilities.canTrash |
BOOLEAN |
Whether the current user can move this file to trash |
changes[].file.capabilities.canTrashChildren |
BOOLEAN |
Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canUntrash |
BOOLEAN |
Whether the current user can restore this file from trash |
changes[].file.contentHints |
OBJECT |
Additional information about the content of the file. These fields are never populated in responses |
changes[].file.contentHints.indexableText |
STRING |
Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements |
changes[].file.contentHints.thumbnail |
OBJECT |
A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail |
changes[].file.contentHints.thumbnail.image |
BINARY |
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5) |
changes[].file.contentHints.thumbnail.mimeType |
STRING |
The MIME type of the thumbnail |
changes[].file.copyRequiresWriterPermission |
BOOLEAN |
Whether the options to copy, print, or download this file, should be disabled for readers and commenters |
changes[].file.createdTime |
DATE_TIME |
The time at which the file was created (RFC 3339 date-time) |
changes[].file.description |
STRING |
A short description of the file |
changes[].file.driveId |
STRING |
ID of the shared drive the file resides in. Only populated for items in shared drives |
changes[].file.explicitlyTrashed |
BOOLEAN |
Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder |
changes[].file.exportLinks |
OBJECT |
Links for exporting Google Docs to specific formats |
changes[].file.exportLinks.customKey.value |
STRING |
Links for exporting Google Docs to specific formats |
changes[].file.fileExtension |
STRING |
The final component of fullFileExtension. This is only available for files with binary content in Google Drive |
changes[].file.folderColorRgb |
STRING |
The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead |
changes[].file.fullFileExtension |
STRING |
The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension |
changes[].file.hasAugmentedPermissions |
BOOLEAN |
Whether any users are granted file access directly on this file. This field is only populated for shared drive files |
changes[].file.hasThumbnail |
BOOLEAN |
Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field |
changes[].file.headRevisionId |
STRING |
The ID of the file's head revision. This is currently only available for files with binary content in Google Drive |
changes[].file.iconLink |
STRING |
A static, unauthenticated link to the file's icon |
changes[].file.id |
STRING |
The ID of the file |
changes[].file.imageMediaMetadata |
OBJECT |
Additional metadata about image media, if available |
changes[].file.imageMediaMetadata.aperture |
FLOAT |
The aperture used to create the photo (f-number) |
changes[].file.imageMediaMetadata.cameraMake |
STRING |
The make of the camera used to create the photo |
changes[].file.imageMediaMetadata.cameraModel |
STRING |
The model of the camera used to create the photo |
changes[].file.imageMediaMetadata.colorSpace |
STRING |
The color space of the photo |
changes[].file.imageMediaMetadata.exposureBias |
FLOAT |
The exposure bias of the photo (APEX value) |
changes[].file.imageMediaMetadata.exposureMode |
STRING |
The exposure mode used to create the photo |
changes[].file.imageMediaMetadata.exposureTime |
FLOAT |
The length of the exposure, in seconds |
changes[].file.imageMediaMetadata.flashUsed |
BOOLEAN |
Whether a flash was used to create the photo |
changes[].file.imageMediaMetadata.focalLength |
FLOAT |
The focal length used to create the photo, in millimeters |
changes[].file.imageMediaMetadata.height |
INTEGER |
The height of the image in pixels |
changes[].file.imageMediaMetadata.isoSpeed |
INTEGER |
The ISO speed used to create the photo |
changes[].file.imageMediaMetadata.lens |
STRING |
The lens used to create the photo |
changes[].file.imageMediaMetadata.location |
OBJECT |
Geographic location information stored in the image |
changes[].file.imageMediaMetadata.location.altitude |
NUMBER |
The altitude stored in the image |
changes[].file.imageMediaMetadata.location.latitude |
NUMBER |
The latitude stored in the image |
changes[].file.imageMediaMetadata.location.longitude |
NUMBER |
The longitude stored in the image |
changes[].file.imageMediaMetadata.maxApertureValue |
FLOAT |
The smallest f-number of the lens at the focal length used to create the photo (APEX value) |
changes[].file.imageMediaMetadata.meteringMode |
STRING |
The metering mode used to create the photo |
changes[].file.imageMediaMetadata.rotation |
INTEGER |
The rotation in clockwise degrees from the image's original orientation |
changes[].file.imageMediaMetadata.sensor |
STRING |
The type of sensor used to create the photo |
changes[].file.imageMediaMetadata.subjectDistance |
INTEGER |
The distance to the subject of the photo, in meters |
changes[].file.imageMediaMetadata.time |
STRING |
The date and time the photo was taken (EXIF DateTime) |
changes[].file.imageMediaMetadata.whiteBalance |
STRING |
The white balance mode used to create the photo |
changes[].file.imageMediaMetadata.width |
INTEGER |
The width of the image in pixels |
changes[].file.isAppAuthorized |
BOOLEAN |
Whether the file was created or opened by the requesting app |
changes[].file.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#file" |
changes[].file.lastModifyingUser |
OBJECT |
Information about a Drive user |
changes[].file.lastModifyingUser.displayName |
STRING |
A plain text displayable name for this user |
changes[].file.lastModifyingUser.emailAddress |
STRING |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.lastModifyingUser.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.lastModifyingUser.me |
BOOLEAN |
Whether this user is the requesting user |
changes[].file.lastModifyingUser.permissionId |
STRING |
The user's ID as visible in Permission resources |
changes[].file.lastModifyingUser.photoLink |
STRING |
A link to the user's profile photo, if available |
changes[].file.md5Checksum |
STRING |
The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive |
changes[].file.mimeType |
STRING |
The MIME type of the file. Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource |
changes[].file.modifiedByMe |
BOOLEAN |
Whether the file has been modified by this user |
changes[].file.modifiedByMeTime |
DATE_TIME |
The last time the file was modified by the user (RFC 3339 date-time) |
changes[].file.modifiedTime |
DATE_TIME |
The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user |
changes[].file.name |
STRING |
The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant |
changes[].file.originalFilename |
STRING |
The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive |
changes[].file.ownedByMe |
BOOLEAN |
Whether the user owns the file. Not populated for items in shared drives |
changes[].file.owners[] |
OBJECT |
Information about a Drive user |
changes[].file.parents[] |
STRING |
|
changes[].file.permissionIds[] |
STRING |
|
changes[].file.permissions[] |
OBJECT |
A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy |
changes[].file.properties |
OBJECT |
A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests |
changes[].file.properties.customKey.value |
STRING |
A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests |
changes[].file.quotaBytesUsed |
INTEGER |
The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled |
changes[].file.shared |
BOOLEAN |
Whether the file has been shared. Not populated for items in shared drives |
changes[].file.sharedWithMeTime |
DATE_TIME |
The time at which the file was shared with the user, if applicable (RFC 3339 date-time) |
changes[].file.sharingUser |
OBJECT |
Information about a Drive user |
changes[].file.sharingUser.displayName |
STRING |
A plain text displayable name for this user |
changes[].file.sharingUser.emailAddress |
STRING |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.sharingUser.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.sharingUser.me |
BOOLEAN |
Whether this user is the requesting user |
changes[].file.sharingUser.permissionId |
STRING |
The user's ID as visible in Permission resources |
changes[].file.sharingUser.photoLink |
STRING |
A link to the user's profile photo, if available |
changes[].file.size |
INTEGER |
The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive |
changes[].file.spaces[] |
STRING |
|
changes[].file.starred |
BOOLEAN |
Whether the user has starred the file |
changes[].file.teamDriveId |
STRING |
Deprecated - use driveId instead |
changes[].file.thumbnailLink |
STRING |
A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content |
changes[].file.thumbnailVersion |
INTEGER |
The thumbnail version for use in thumbnail cache invalidation |
changes[].file.trashed |
BOOLEAN |
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash |
changes[].file.trashedTime |
DATE_TIME |
The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives |
changes[].file.trashingUser |
OBJECT |
Information about a Drive user |
changes[].file.trashingUser.displayName |
STRING |
A plain text displayable name for this user |
changes[].file.trashingUser.emailAddress |
STRING |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.trashingUser.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.trashingUser.me |
BOOLEAN |
Whether this user is the requesting user |
changes[].file.trashingUser.permissionId |
STRING |
The user's ID as visible in Permission resources |
changes[].file.trashingUser.photoLink |
STRING |
A link to the user's profile photo, if available |
changes[].file.version |
INTEGER |
A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user |
changes[].file.videoMediaMetadata |
OBJECT |
Additional metadata about video media. This may not be available immediately upon upload |
changes[].file.videoMediaMetadata.durationMillis |
INTEGER |
The duration of the video in milliseconds |
changes[].file.videoMediaMetadata.height |
INTEGER |
The height of the video in pixels |
changes[].file.videoMediaMetadata.width |
INTEGER |
The width of the video in pixels |
changes[].file.viewedByMe |
BOOLEAN |
Whether the file has been viewed by this user |
changes[].file.viewedByMeTime |
DATE_TIME |
The last time the file was viewed by the user (RFC 3339 date-time) |
changes[].file.viewersCanCopyContent |
BOOLEAN |
Deprecated - use copyRequiresWriterPermission instead |
changes[].file.webContentLink |
STRING |
A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive |
changes[].file.webViewLink |
STRING |
A link for opening the file in a relevant Google editor or viewer in a browser |
changes[].file.writersCanShare |
BOOLEAN |
Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives |
changes[].fileId |
STRING |
The ID of the file which has changed |
changes[].kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#change" |
changes[].removed |
BOOLEAN |
Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access |
changes[].teamDrive |
OBJECT |
Deprecated: use the drive collection instead |
changes[].teamDrive.backgroundImageFile |
OBJECT |
An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set |
changes[].teamDrive.backgroundImageFile.id |
STRING |
The ID of an image file in Drive to use for the background image |
changes[].teamDrive.backgroundImageFile.width |
FLOAT |
The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high |
changes[].teamDrive.backgroundImageFile.xCoordinate |
FLOAT |
The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image |
changes[].teamDrive.backgroundImageFile.yCoordinate |
FLOAT |
The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image |
changes[].teamDrive.backgroundImageLink |
STRING |
A short-lived link to this Team Drive's background image |
changes[].teamDrive.capabilities |
OBJECT |
Capabilities the current user has on this Team Drive |
changes[].teamDrive.capabilities.canAddChildren |
BOOLEAN |
Whether the current user can add children to folders in this Team Drive |
changes[].teamDrive.capabilities.canChangeCopyRequiresWriterPermissionRestriction |
BOOLEAN |
Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive |
changes[].teamDrive.capabilities.canChangeDomainUsersOnlyRestriction |
BOOLEAN |
Whether the current user can change the domainUsersOnly restriction of this Team Drive |
changes[].teamDrive.capabilities.canChangeTeamDriveBackground |
BOOLEAN |
Whether the current user can change the background of this Team Drive |
changes[].teamDrive.capabilities.canChangeTeamMembersOnlyRestriction |
BOOLEAN |
Whether the current user can change the teamMembersOnly restriction of this Team Drive |
changes[].teamDrive.capabilities.canComment |
BOOLEAN |
Whether the current user can comment on files in this Team Drive |
changes[].teamDrive.capabilities.canCopy |
BOOLEAN |
Whether the current user can copy files in this Team Drive |
changes[].teamDrive.capabilities.canDeleteChildren |
BOOLEAN |
Whether the current user can delete children from folders in this Team Drive |
changes[].teamDrive.capabilities.canDeleteTeamDrive |
BOOLEAN |
Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive |
changes[].teamDrive.capabilities.canDownload |
BOOLEAN |
Whether the current user can download files in this Team Drive |
changes[].teamDrive.capabilities.canEdit |
BOOLEAN |
Whether the current user can edit files in this Team Drive |
changes[].teamDrive.capabilities.canListChildren |
BOOLEAN |
Whether the current user can list the children of folders in this Team Drive |
changes[].teamDrive.capabilities.canManageMembers |
BOOLEAN |
Whether the current user can add members to this Team Drive or remove them or change their role |
changes[].teamDrive.capabilities.canReadRevisions |
BOOLEAN |
Whether the current user can read the revisions resource of files in this Team Drive |
changes[].teamDrive.capabilities.canRemoveChildren |
BOOLEAN |
Deprecated - use canDeleteChildren or canTrashChildren instead |
changes[].teamDrive.capabilities.canRename |
BOOLEAN |
Whether the current user can rename files or folders in this Team Drive |
changes[].teamDrive.capabilities.canRenameTeamDrive |
BOOLEAN |
Whether the current user can rename this Team Drive |
changes[].teamDrive.capabilities.canShare |
BOOLEAN |
Whether the current user can share files or folders in this Team Drive |
changes[].teamDrive.capabilities.canTrashChildren |
BOOLEAN |
Whether the current user can trash children from folders in this Team Drive |
changes[].teamDrive.colorRgb |
STRING |
The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId |
changes[].teamDrive.createdTime |
DATE_TIME |
The time at which the Team Drive was created (RFC 3339 date-time) |
changes[].teamDrive.id |
STRING |
The ID of this Team Drive which is also the ID of the top level folder of this Team Drive |
changes[].teamDrive.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive" |
changes[].teamDrive.name |
STRING |
The name of this Team Drive |
changes[].teamDrive.restrictions |
OBJECT |
A set of restrictions that apply to this Team Drive or items inside this Team Drive |
changes[].teamDrive.restrictions.adminManagedRestrictions |
BOOLEAN |
Whether administrative privileges on this Team Drive are required to modify restrictions |
changes[].teamDrive.restrictions.copyRequiresWriterPermission |
BOOLEAN |
Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive |
changes[].teamDrive.restrictions.domainUsersOnly |
BOOLEAN |
Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive |
changes[].teamDrive.restrictions.teamMembersOnly |
BOOLEAN |
Whether access to items inside this Team Drive is restricted to members of this Team Drive |
changes[].teamDrive.themeId |
STRING |
The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile |
changes[].teamDriveId |
STRING |
Deprecated - use driveId instead |
changes[].time |
DATE_TIME |
The time of this change (RFC 3339 date-time) |
changes[].type |
STRING |
Deprecated - use changeType instead |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#changeList" |
newStartPageToken |
STRING |
The starting page token for future changes. This will be present only if the end of the current changes list has been reached |
nextPageToken |
STRING |
The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results |
= Parameter name
= Format
changes[] OBJECT A change to a file or shared drive |
changes[].changeType STRING The type of the change. Possible values are file and drive |
changes[].drive OBJECT Representation of a shared drive |
changes[].drive.backgroundImageFile OBJECT An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set |
changes[].drive.backgroundImageFile.id STRING The ID of an image file in Google Drive to use for the background image |
changes[].drive.backgroundImageFile.width FLOAT The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high |
changes[].drive.backgroundImageFile.xCoordinate FLOAT The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image |
changes[].drive.backgroundImageFile.yCoordinate FLOAT The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image |
changes[].drive.backgroundImageLink STRING A short-lived link to this shared drive's background image |
changes[].drive.capabilities OBJECT Capabilities the current user has on this shared drive |
changes[].drive.capabilities.canAddChildren BOOLEAN Whether the current user can add children to folders in this shared drive |
changes[].drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction BOOLEAN Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive |
changes[].drive.capabilities.canChangeDomainUsersOnlyRestriction BOOLEAN Whether the current user can change the domainUsersOnly restriction of this shared drive |
changes[].drive.capabilities.canChangeDriveBackground BOOLEAN Whether the current user can change the background of this shared drive |
changes[].drive.capabilities.canChangeDriveMembersOnlyRestriction BOOLEAN Whether the current user can change the driveMembersOnly restriction of this shared drive |
changes[].drive.capabilities.canComment BOOLEAN Whether the current user can comment on files in this shared drive |
changes[].drive.capabilities.canCopy BOOLEAN Whether the current user can copy files in this shared drive |
changes[].drive.capabilities.canDeleteChildren BOOLEAN Whether the current user can delete children from folders in this shared drive |
changes[].drive.capabilities.canDeleteDrive BOOLEAN Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive |
changes[].drive.capabilities.canDownload BOOLEAN Whether the current user can download files in this shared drive |
changes[].drive.capabilities.canEdit BOOLEAN Whether the current user can edit files in this shared drive |
changes[].drive.capabilities.canListChildren BOOLEAN Whether the current user can list the children of folders in this shared drive |
changes[].drive.capabilities.canManageMembers BOOLEAN Whether the current user can add members to this shared drive or remove them or change their role |
changes[].drive.capabilities.canReadRevisions BOOLEAN Whether the current user can read the revisions resource of files in this shared drive |
changes[].drive.capabilities.canRename BOOLEAN Whether the current user can rename files or folders in this shared drive |
changes[].drive.capabilities.canRenameDrive BOOLEAN Whether the current user can rename this shared drive |
changes[].drive.capabilities.canShare BOOLEAN Whether the current user can share files or folders in this shared drive |
changes[].drive.capabilities.canTrashChildren BOOLEAN Whether the current user can trash children from folders in this shared drive |
changes[].drive.colorRgb STRING The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId |
changes[].drive.createdTime DATE_TIME The time at which the shared drive was created (RFC 3339 date-time) |
changes[].drive.hidden BOOLEAN Whether the shared drive is hidden from default view |
changes[].drive.id STRING The ID of this shared drive which is also the ID of the top level folder of this shared drive |
changes[].drive.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#drive" |
changes[].drive.name STRING The name of this shared drive |
changes[].drive.restrictions OBJECT A set of restrictions that apply to this shared drive or items inside this shared drive |
changes[].drive.restrictions.adminManagedRestrictions BOOLEAN Whether administrative privileges on this shared drive are required to modify restrictions |
changes[].drive.restrictions.copyRequiresWriterPermission BOOLEAN Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive |
changes[].drive.restrictions.domainUsersOnly BOOLEAN Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive |
changes[].drive.restrictions.driveMembersOnly BOOLEAN Whether access to items inside this shared drive is restricted to its members |
changes[].drive.themeId STRING The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile |
changes[].driveId STRING The ID of the shared drive associated with this change |
changes[].file OBJECT The metadata for a file |
changes[].file.appProperties OBJECT A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests |
changes[].file.appProperties.customKey.value STRING A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests |
changes[].file.capabilities OBJECT Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take |
changes[].file.capabilities.canAddChildren BOOLEAN Whether the current user can add children to this folder. This is always false when the item is not a folder |
changes[].file.capabilities.canChangeCopyRequiresWriterPermission BOOLEAN Whether the current user can change the copyRequiresWriterPermission restriction of this file |
changes[].file.capabilities.canChangeViewersCanCopyContent BOOLEAN Deprecated |
changes[].file.capabilities.canComment BOOLEAN Whether the current user can comment on this file |
changes[].file.capabilities.canCopy BOOLEAN Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder |
changes[].file.capabilities.canDelete BOOLEAN Whether the current user can delete this file |
changes[].file.capabilities.canDeleteChildren BOOLEAN Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canDownload BOOLEAN Whether the current user can download this file |
changes[].file.capabilities.canEdit BOOLEAN Whether the current user can edit this file |
changes[].file.capabilities.canListChildren BOOLEAN Whether the current user can list the children of this folder. This is always false when the item is not a folder |
changes[].file.capabilities.canMoveChildrenOutOfDrive BOOLEAN Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canMoveChildrenOutOfTeamDrive BOOLEAN Deprecated - use canMoveChildrenOutOfDrive instead |
changes[].file.capabilities.canMoveChildrenWithinDrive BOOLEAN Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canMoveChildrenWithinTeamDrive BOOLEAN Deprecated - use canMoveChildrenWithinDrive instead |
changes[].file.capabilities.canMoveItemIntoTeamDrive BOOLEAN Deprecated - use canMoveItemOutOfDrive instead |
changes[].file.capabilities.canMoveItemOutOfDrive BOOLEAN Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added |
changes[].file.capabilities.canMoveItemOutOfTeamDrive BOOLEAN Deprecated - use canMoveItemOutOfDrive instead |
changes[].file.capabilities.canMoveItemWithinDrive BOOLEAN Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives |
changes[].file.capabilities.canMoveItemWithinTeamDrive BOOLEAN Deprecated - use canMoveItemWithinDrive instead |
changes[].file.capabilities.canMoveTeamDriveItem BOOLEAN Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead |
changes[].file.capabilities.canReadDrive BOOLEAN Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives |
changes[].file.capabilities.canReadRevisions BOOLEAN Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read |
changes[].file.capabilities.canReadTeamDrive BOOLEAN Deprecated - use canReadDrive instead |
changes[].file.capabilities.canRemoveChildren BOOLEAN Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead |
changes[].file.capabilities.canRename BOOLEAN Whether the current user can rename this file |
changes[].file.capabilities.canShare BOOLEAN Whether the current user can modify the sharing settings for this file |
changes[].file.capabilities.canTrash BOOLEAN Whether the current user can move this file to trash |
changes[].file.capabilities.canTrashChildren BOOLEAN Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives |
changes[].file.capabilities.canUntrash BOOLEAN Whether the current user can restore this file from trash |
changes[].file.contentHints OBJECT Additional information about the content of the file. These fields are never populated in responses |
changes[].file.contentHints.indexableText STRING Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements |
changes[].file.contentHints.thumbnail OBJECT A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail |
changes[].file.contentHints.thumbnail.image BINARY The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5) |
changes[].file.contentHints.thumbnail.mimeType STRING The MIME type of the thumbnail |
changes[].file.copyRequiresWriterPermission BOOLEAN Whether the options to copy, print, or download this file, should be disabled for readers and commenters |
changes[].file.createdTime DATE_TIME The time at which the file was created (RFC 3339 date-time) |
changes[].file.description STRING A short description of the file |
changes[].file.driveId STRING ID of the shared drive the file resides in. Only populated for items in shared drives |
changes[].file.explicitlyTrashed BOOLEAN Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder |
changes[].file.exportLinks OBJECT Links for exporting Google Docs to specific formats |
changes[].file.exportLinks.customKey.value STRING Links for exporting Google Docs to specific formats |
changes[].file.fileExtension STRING The final component of fullFileExtension. This is only available for files with binary content in Google Drive |
changes[].file.folderColorRgb STRING The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead |
changes[].file.fullFileExtension STRING The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension |
changes[].file.hasAugmentedPermissions BOOLEAN Whether any users are granted file access directly on this file. This field is only populated for shared drive files |
changes[].file.hasThumbnail BOOLEAN Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field |
changes[].file.headRevisionId STRING The ID of the file's head revision. This is currently only available for files with binary content in Google Drive |
changes[].file.iconLink STRING A static, unauthenticated link to the file's icon |
changes[].file.id STRING The ID of the file |
changes[].file.imageMediaMetadata OBJECT Additional metadata about image media, if available |
changes[].file.imageMediaMetadata.aperture FLOAT The aperture used to create the photo (f-number) |
changes[].file.imageMediaMetadata.cameraMake STRING The make of the camera used to create the photo |
changes[].file.imageMediaMetadata.cameraModel STRING The model of the camera used to create the photo |
changes[].file.imageMediaMetadata.colorSpace STRING The color space of the photo |
changes[].file.imageMediaMetadata.exposureBias FLOAT The exposure bias of the photo (APEX value) |
changes[].file.imageMediaMetadata.exposureMode STRING The exposure mode used to create the photo |
changes[].file.imageMediaMetadata.exposureTime FLOAT The length of the exposure, in seconds |
changes[].file.imageMediaMetadata.flashUsed BOOLEAN Whether a flash was used to create the photo |
changes[].file.imageMediaMetadata.focalLength FLOAT The focal length used to create the photo, in millimeters |
changes[].file.imageMediaMetadata.height INTEGER The height of the image in pixels |
changes[].file.imageMediaMetadata.isoSpeed INTEGER The ISO speed used to create the photo |
changes[].file.imageMediaMetadata.lens STRING The lens used to create the photo |
changes[].file.imageMediaMetadata.location OBJECT Geographic location information stored in the image |
changes[].file.imageMediaMetadata.location.altitude NUMBER The altitude stored in the image |
changes[].file.imageMediaMetadata.location.latitude NUMBER The latitude stored in the image |
changes[].file.imageMediaMetadata.location.longitude NUMBER The longitude stored in the image |
changes[].file.imageMediaMetadata.maxApertureValue FLOAT The smallest f-number of the lens at the focal length used to create the photo (APEX value) |
changes[].file.imageMediaMetadata.meteringMode STRING The metering mode used to create the photo |
changes[].file.imageMediaMetadata.rotation INTEGER The rotation in clockwise degrees from the image's original orientation |
changes[].file.imageMediaMetadata.sensor STRING The type of sensor used to create the photo |
changes[].file.imageMediaMetadata.subjectDistance INTEGER The distance to the subject of the photo, in meters |
changes[].file.imageMediaMetadata.time STRING The date and time the photo was taken (EXIF DateTime) |
changes[].file.imageMediaMetadata.whiteBalance STRING The white balance mode used to create the photo |
changes[].file.imageMediaMetadata.width INTEGER The width of the image in pixels |
changes[].file.isAppAuthorized BOOLEAN Whether the file was created or opened by the requesting app |
changes[].file.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#file" |
changes[].file.lastModifyingUser OBJECT Information about a Drive user |
changes[].file.lastModifyingUser.displayName STRING A plain text displayable name for this user |
changes[].file.lastModifyingUser.emailAddress STRING The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.lastModifyingUser.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.lastModifyingUser.me BOOLEAN Whether this user is the requesting user |
changes[].file.lastModifyingUser.permissionId STRING The user's ID as visible in Permission resources |
changes[].file.lastModifyingUser.photoLink STRING A link to the user's profile photo, if available |
changes[].file.md5Checksum STRING The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive |
changes[].file.mimeType STRING The MIME type of the file. Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource |
changes[].file.modifiedByMe BOOLEAN Whether the file has been modified by this user |
changes[].file.modifiedByMeTime DATE_TIME The last time the file was modified by the user (RFC 3339 date-time) |
changes[].file.modifiedTime DATE_TIME The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user |
changes[].file.name STRING The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant |
changes[].file.originalFilename STRING The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive |
changes[].file.ownedByMe BOOLEAN Whether the user owns the file. Not populated for items in shared drives |
changes[].file.owners[] OBJECT Information about a Drive user |
changes[].file.parents[] STRING |
changes[].file.permissionIds[] STRING |
changes[].file.permissions[] OBJECT A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy |
changes[].file.properties OBJECT A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests |
changes[].file.properties.customKey.value STRING A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests |
changes[].file.quotaBytesUsed INTEGER The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled |
changes[].file.shared BOOLEAN Whether the file has been shared. Not populated for items in shared drives |
changes[].file.sharedWithMeTime DATE_TIME The time at which the file was shared with the user, if applicable (RFC 3339 date-time) |
changes[].file.sharingUser OBJECT Information about a Drive user |
changes[].file.sharingUser.displayName STRING A plain text displayable name for this user |
changes[].file.sharingUser.emailAddress STRING The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.sharingUser.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.sharingUser.me BOOLEAN Whether this user is the requesting user |
changes[].file.sharingUser.permissionId STRING The user's ID as visible in Permission resources |
changes[].file.sharingUser.photoLink STRING A link to the user's profile photo, if available |
changes[].file.size INTEGER The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive |
changes[].file.spaces[] STRING |
changes[].file.starred BOOLEAN Whether the user has starred the file |
changes[].file.teamDriveId STRING Deprecated - use driveId instead |
changes[].file.thumbnailLink STRING A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content |
changes[].file.thumbnailVersion INTEGER The thumbnail version for use in thumbnail cache invalidation |
changes[].file.trashed BOOLEAN Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash |
changes[].file.trashedTime DATE_TIME The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives |
changes[].file.trashingUser OBJECT Information about a Drive user |
changes[].file.trashingUser.displayName STRING A plain text displayable name for this user |
changes[].file.trashingUser.emailAddress STRING The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
changes[].file.trashingUser.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#user" |
changes[].file.trashingUser.me BOOLEAN Whether this user is the requesting user |
changes[].file.trashingUser.permissionId STRING The user's ID as visible in Permission resources |
changes[].file.trashingUser.photoLink STRING A link to the user's profile photo, if available |
changes[].file.version INTEGER A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user |
changes[].file.videoMediaMetadata OBJECT Additional metadata about video media. This may not be available immediately upon upload |
changes[].file.videoMediaMetadata.durationMillis INTEGER The duration of the video in milliseconds |
changes[].file.videoMediaMetadata.height INTEGER The height of the video in pixels |
changes[].file.videoMediaMetadata.width INTEGER The width of the video in pixels |
changes[].file.viewedByMe BOOLEAN Whether the file has been viewed by this user |
changes[].file.viewedByMeTime DATE_TIME The last time the file was viewed by the user (RFC 3339 date-time) |
changes[].file.viewersCanCopyContent BOOLEAN Deprecated - use copyRequiresWriterPermission instead |
changes[].file.webContentLink STRING A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive |
changes[].file.webViewLink STRING A link for opening the file in a relevant Google editor or viewer in a browser |
changes[].file.writersCanShare BOOLEAN Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives |
changes[].fileId STRING The ID of the file which has changed |
changes[].kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#change" |
changes[].removed BOOLEAN Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access |
changes[].teamDrive OBJECT Deprecated: use the drive collection instead |
changes[].teamDrive.backgroundImageFile OBJECT An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set |
changes[].teamDrive.backgroundImageFile.id STRING The ID of an image file in Drive to use for the background image |
changes[].teamDrive.backgroundImageFile.width FLOAT The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high |
changes[].teamDrive.backgroundImageFile.xCoordinate FLOAT The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image |
changes[].teamDrive.backgroundImageFile.yCoordinate FLOAT The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image |
changes[].teamDrive.backgroundImageLink STRING A short-lived link to this Team Drive's background image |
changes[].teamDrive.capabilities OBJECT Capabilities the current user has on this Team Drive |
changes[].teamDrive.capabilities.canAddChildren BOOLEAN Whether the current user can add children to folders in this Team Drive |
changes[].teamDrive.capabilities.canChangeCopyRequiresWriterPermissionRestriction BOOLEAN Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive |
changes[].teamDrive.capabilities.canChangeDomainUsersOnlyRestriction BOOLEAN Whether the current user can change the domainUsersOnly restriction of this Team Drive |
changes[].teamDrive.capabilities.canChangeTeamDriveBackground BOOLEAN Whether the current user can change the background of this Team Drive |
changes[].teamDrive.capabilities.canChangeTeamMembersOnlyRestriction BOOLEAN Whether the current user can change the teamMembersOnly restriction of this Team Drive |
changes[].teamDrive.capabilities.canComment BOOLEAN Whether the current user can comment on files in this Team Drive |
changes[].teamDrive.capabilities.canCopy BOOLEAN Whether the current user can copy files in this Team Drive |
changes[].teamDrive.capabilities.canDeleteChildren BOOLEAN Whether the current user can delete children from folders in this Team Drive |
changes[].teamDrive.capabilities.canDeleteTeamDrive BOOLEAN Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive |
changes[].teamDrive.capabilities.canDownload BOOLEAN Whether the current user can download files in this Team Drive |
changes[].teamDrive.capabilities.canEdit BOOLEAN Whether the current user can edit files in this Team Drive |
changes[].teamDrive.capabilities.canListChildren BOOLEAN Whether the current user can list the children of folders in this Team Drive |
changes[].teamDrive.capabilities.canManageMembers BOOLEAN Whether the current user can add members to this Team Drive or remove them or change their role |
changes[].teamDrive.capabilities.canReadRevisions BOOLEAN Whether the current user can read the revisions resource of files in this Team Drive |
changes[].teamDrive.capabilities.canRemoveChildren BOOLEAN Deprecated - use canDeleteChildren or canTrashChildren instead |
changes[].teamDrive.capabilities.canRename BOOLEAN Whether the current user can rename files or folders in this Team Drive |
changes[].teamDrive.capabilities.canRenameTeamDrive BOOLEAN Whether the current user can rename this Team Drive |
changes[].teamDrive.capabilities.canShare BOOLEAN Whether the current user can share files or folders in this Team Drive |
changes[].teamDrive.capabilities.canTrashChildren BOOLEAN Whether the current user can trash children from folders in this Team Drive |
changes[].teamDrive.colorRgb STRING The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId |
changes[].teamDrive.createdTime DATE_TIME The time at which the Team Drive was created (RFC 3339 date-time) |
changes[].teamDrive.id STRING The ID of this Team Drive which is also the ID of the top level folder of this Team Drive |
changes[].teamDrive.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive" |
changes[].teamDrive.name STRING The name of this Team Drive |
changes[].teamDrive.restrictions OBJECT A set of restrictions that apply to this Team Drive or items inside this Team Drive |
changes[].teamDrive.restrictions.adminManagedRestrictions BOOLEAN Whether administrative privileges on this Team Drive are required to modify restrictions |
changes[].teamDrive.restrictions.copyRequiresWriterPermission BOOLEAN Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive |
changes[].teamDrive.restrictions.domainUsersOnly BOOLEAN Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive |
changes[].teamDrive.restrictions.teamMembersOnly BOOLEAN Whether access to items inside this Team Drive is restricted to members of this Team Drive |
changes[].teamDrive.themeId STRING The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile |
changes[].teamDriveId STRING Deprecated - use driveId instead |
changes[].time DATE_TIME The time of this change (RFC 3339 date-time) |
changes[].type STRING Deprecated - use changeType instead |
kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#changeList" |
newStartPageToken STRING The starting page token for future changes. This will be present only if the end of the current changes list has been reached |
nextPageToken STRING The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results |