Changes

Stay organized with collections Save and categorize content based on your preferences.

For a list of methods for this resource, see the end of this page.

Resource representations

Representation of a change to a file or shared drive.

{
  "kind": "drive#change",
  "id": long,
  "type": string,
  "changeType": string,
  "modificationDate": datetime,
  "deleted": boolean,
  "selfLink": string,
  "fileId": string,
  "file": files Resource,
  "teamDriveId": string,
  "driveId": string,
  "teamDrive": teamdrives Resource,
  "drive": drives Resource
}
Property name Value Description Notes
kind string This is always drive#change.
id long The ID of the change.
fileId string The ID of the file associated with this change.
deleted boolean Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
file nested object The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
modificationDate datetime The time of this modification.
type string Deprecated - use changeType instead.
teamDriveId string Deprecated - use driveId instead.
teamDrive nested object Deprecated - use drive instead.
changeType string The type of the change. Possible values are file and drive.
driveId string The ID of the shared drive associated with this change.
drive nested object The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted.

Methods

get
Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.
list
Lists the changes for a user or shared drive.
watch
Watch for all changes to a user's Drive.
getStartPageToken
Gets the starting pageToken for listing future changes.