List

Lists a file's revisions

3 variables
23 variables

Lists a file's revisions

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 3 input parameters

  = Parameter name
  = Format

fileId STRING Required

The ID of the file

pageSize INTEGER

The maximum number of revisions to return per page

pageToken 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

Output

This building block provides 23 output parameters

  = Parameter name
  = Format

kind STRING

Identifies what kind of resource this is. Value: the fixed string "drive#revisionList"

nextPageToken STRING

The page token for the next page of revisions. This will be absent if the end of the revisions 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

revisions[] OBJECT

The metadata for a revision to a file

revisions[].exportLinks OBJECT

Links for exporting Google Docs to specific formats

revisions[].exportLinks.customKey.value STRING

Links for exporting Google Docs to specific formats

revisions[].id STRING

The ID of the revision

revisions[].keepForever BOOLEAN

Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive

revisions[].kind STRING

Identifies what kind of resource this is. Value: the fixed string "drive#revision"

revisions[].lastModifyingUser OBJECT

Information about a Drive user

revisions[].lastModifyingUser.displayName STRING

A plain text displayable name for this user

revisions[].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

revisions[].lastModifyingUser.kind STRING

Identifies what kind of resource this is. Value: the fixed string "drive#user"

revisions[].lastModifyingUser.me BOOLEAN

Whether this user is the requesting user

revisions[].lastModifyingUser.permissionId STRING

The user's ID as visible in Permission resources

revisions[].lastModifyingUser.photoLink STRING

A link to the user's profile photo, if available

revisions[].md5Checksum STRING

The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive

revisions[].mimeType STRING

The MIME type of the revision

revisions[].modifiedTime DATE_TIME

The last time the revision was modified (RFC 3339 date-time)

revisions[].originalFilename STRING

The original filename used to create this revision. This is only applicable to files with binary content in Drive

revisions[].publishAuto BOOLEAN

Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs

revisions[].published BOOLEAN

Whether this revision is published. This is only applicable to Google Docs

revisions[].publishedOutsideDomain BOOLEAN

Whether this revision is published outside the domain. This is only applicable to Google Docs

revisions[].size INTEGER

The size of the revision's content in bytes. This is only applicable to files with binary content in Drive