1 API Parameters
_
2 Resources
2.1 files
drive-files-list
drive-files-touch
drive-files-get
drive-files-insert
drive-files-patch
drive-files-copy
drive-files-trash
drive-files-untrash
drive-files-delete
drive-files-update
2.2 replies
drive-replies-list
drive-replies-get
drive-replies-insert
drive-replies-patch
drive-replies-delete
drive-replies-update
2.3 parents
drive-parents-list
drive-parents-get
drive-parents-insert
drive-parents-delete
2.4 about
drive-about-get
2.5 apps
drive-apps-list
drive-apps-get
2.6 changes
drive-changes-list
drive-changes-get
2.7 children
drive-children-list
drive-children-get
drive-children-insert
drive-children-delete
2.8 comments
drive-comments-list
drive-comments-get
drive-comments-insert
drive-comments-patch
drive-comments-delete
drive-comments-update
2.9 permissions
drive-permissions-list
drive-permissions-get
drive-permissions-insert
drive-permissions-patch
drive-permissions-delete
drive-permissions-update
2.10 revisions
drive-revisions-list
drive-revisions-get
drive-revisions-patch
drive-revisions-delete
drive-revisions-update
Version: 5.3

Drive API v2

This documentation has been automatically generated using information supplied by the Google API Discovery service.

The API to interact with Drive. Google documentation.

    1 API Parameters

    2 Resources

      2.1 files

      2.2 replies

      2.3 parents

      2.4 about

      2.5 apps

      2.6 changes

      2.7 children

      2.8 comments

      2.9 permissions

      2.10 revisions

(require-gapi-doc drive.v2.js)

1 API Parameters

The following optional keyword arguments may be passed to all functions for this web service:

procedure

(_ [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A

This is not actually a function. This is just using Scribble’s defproc form to list the optional keyword arguments that may be passed to all functions for this service.

alt: Data format for the response.

fields: Selector specifying which fields to include in a partial response.

key: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token: OAuth 2.0 token for the current user.

prettyPrint: Returns response with indentations and line breaks.

quotaUser: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

userIp: IP address of the site where the request originates. Use this if you want to enforce per-user limits.

2 Resources

2.1 files

procedure

(drive-files-list [#:projection projection    
  #:maxResults maxResults    
  #:pageToken pageToken    
  #:q q    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  projection : string? = 'N/A
  maxResults : string? = 'N/A
  pageToken : string? = 'N/A
  q : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists the user’s files.

projection: This parameter is deprecated and has no function.

maxResults: Maximum number of files to return.

pageToken: Page token for files.

q: Query string for searching files.

procedure

(drive-files-touch #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Set the file’s updated time to the current server time.

fileId: The ID of the file to update.

procedure

(drive-files-get #:fileId fileId    
  [#:projection projection    
  #:updateViewedDate updateViewedDate    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  projection : string? = 'N/A
  updateViewedDate : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a file’s metadata by ID.

fileId: The ID for the file in question.

projection: This parameter is deprecated and has no function.

updateViewedDate: Whether to update the view date after successfully retrieving the file.

procedure

(drive-files-insert 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:id id 
  #:description description 
  #:kind kind 
  #:title title 
  #:etag etag 
  #:labels labels 
  #:quotaBytesUsed quotaBytesUsed 
  #:selfLink selfLink 
  #:createdDate createdDate 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:alternateLink alternateLink 
  #:downloadUrl downloadUrl 
  #:editable editable 
  #:embedLink embedLink 
  #:explicitlyTrashed explicitlyTrashed 
  #:exportLinks exportLinks 
  #:fileExtension fileExtension 
  #:fileSize fileSize 
  #:imageMediaMetadata imageMediaMetadata 
  #:indexableText indexableText 
  #:lastModifyingUserName lastModifyingUserName 
  #:lastViewedByMeDate lastViewedByMeDate 
  #:md5Checksum md5Checksum 
  #:modifiedByMeDate modifiedByMeDate 
  #:originalFilename originalFilename 
  #:ownerNames ownerNames 
  #:parents parents 
  #:sharedWithMeDate sharedWithMeDate 
  #:thumbnail thumbnail 
  #:thumbnailLink thumbnailLink 
  #:userPermission userPermission 
  #:webContentLink webContentLink 
  #:writersCanShare writersCanShare 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  pinned : string? = 'N/A
  convert : string? = 'N/A
  ocr : string? = 'N/A
  ocrLanguage : string? = 'N/A
  sourceLanguage : string? = 'N/A
  targetLanguage : string? = 'N/A
  timedTextLanguage : string? = 'N/A
  timedTextTrackName : string? = 'N/A
  id : string? = 'N/A
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  etag : string? = 'N/A
  labels : string? = 'N/A
  quotaBytesUsed : string? = 'N/A
  selfLink : string? = 'N/A
  createdDate : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  alternateLink : string? = 'N/A
  downloadUrl : string? = 'N/A
  editable : string? = 'N/A
  embedLink : string? = 'N/A
  explicitlyTrashed : string? = 'N/A
  exportLinks : string? = 'N/A
  fileExtension : string? = 'N/A
  fileSize : string? = 'N/A
  imageMediaMetadata : string? = 'N/A
  indexableText : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  lastViewedByMeDate : string? = 'N/A
  md5Checksum : string? = 'N/A
  modifiedByMeDate : string? = 'N/A
  originalFilename : string? = 'N/A
  ownerNames : string? = 'N/A
  parents : string? = 'N/A
  sharedWithMeDate : string? = 'N/A
  thumbnail : string? = 'N/A
  thumbnailLink : string? = 'N/A
  userPermission : string? = 'N/A
  webContentLink : string? = 'N/A
  writersCanShare : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Insert a new file.

pinned: Whether to pin the head revision of the uploaded file.

convert: Whether to convert this file to the corresponding Google Docs format.

ocr: Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

ocrLanguage: If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

sourceLanguage: The language of the original file to be translated.

targetLanguage: Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.

timedTextLanguage: The language of the timed text.

timedTextTrackName: The timed text track name.

id: The id of the file.

description: A short description of the file.

kind: The type of file. This is always drive#file.

title: The title of this file.

etag: ETag of the file.

labels: A group of labels for the file.

quotaBytesUsed: The number of quota bytes used by this file.

selfLink: A link back to this file.

createdDate: Create time for this file (formatted ISO8601 timestamp).

modifiedDate: Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

mimeType: The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content’s MIME type.

alternateLink: A link for opening the file in using a relevant Google editor or viewer.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

editable: Whether the file can be edited by the current user.

embedLink: A link for embedding the file.

explicitlyTrashed: Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.

exportLinks: Links for exporting Google Docs to specific formats.

fileExtension: The file extension used when downloading this file. This field is set from the title when inserting or uploading new content. This will only be populated on files with content stored in Drive.

fileSize: The size of the file in bytes. This will only be populated on files with content stored in Drive.

imageMediaMetadata: Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

indexableText: Indexable text attributes for the file (can only be written)

lastModifyingUserName: Name of the last user to modify this file. This will only be populated if a user has edited this file.

lastViewedByMeDate: Last time this file was viewed by the user (formatted RFC 3339 timestamp).

md5Checksum: An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.

modifiedByMeDate: Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

originalFilename: The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.

ownerNames: Name(s) of the owner(s) of this file.

parents: Collection of parent folders which contain this file. Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.

sharedWithMeDate: Time at which this file was shared with the user (formatted RFC 3339 timestamp).

thumbnail: Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.

thumbnailLink: A link to the file’s thumbnail.

userPermission: The permissions for the authenticated user on this file.

webContentLink: A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

writersCanShare: Whether writers can share the document with other users.

procedure

(drive-files-patch 
  #:fileId fileId 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:updateViewedDate updateViewedDate 
  #:newRevision newRevision 
  #:setModifiedDate setModifiedDate 
  #:id id 
  #:description description 
  #:kind kind 
  #:title title 
  #:etag etag 
  #:labels labels 
  #:quotaBytesUsed quotaBytesUsed 
  #:selfLink selfLink 
  #:createdDate createdDate 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:alternateLink alternateLink 
  #:downloadUrl downloadUrl 
  #:editable editable 
  #:embedLink embedLink 
  #:explicitlyTrashed explicitlyTrashed 
  #:exportLinks exportLinks 
  #:fileExtension fileExtension 
  #:fileSize fileSize 
  #:imageMediaMetadata imageMediaMetadata 
  #:indexableText indexableText 
  #:lastModifyingUserName lastModifyingUserName 
  #:lastViewedByMeDate lastViewedByMeDate 
  #:md5Checksum md5Checksum 
  #:modifiedByMeDate modifiedByMeDate 
  #:originalFilename originalFilename 
  #:ownerNames ownerNames 
  #:parents parents 
  #:sharedWithMeDate sharedWithMeDate 
  #:thumbnail thumbnail 
  #:thumbnailLink thumbnailLink 
  #:userPermission userPermission 
  #:webContentLink webContentLink 
  #:writersCanShare writersCanShare 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  pinned : string? = 'N/A
  convert : string? = 'N/A
  ocr : string? = 'N/A
  ocrLanguage : string? = 'N/A
  sourceLanguage : string? = 'N/A
  targetLanguage : string? = 'N/A
  timedTextLanguage : string? = 'N/A
  timedTextTrackName : string? = 'N/A
  updateViewedDate : string? = 'N/A
  newRevision : string? = 'N/A
  setModifiedDate : string? = 'N/A
  id : string? = 'N/A
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  etag : string? = 'N/A
  labels : string? = 'N/A
  quotaBytesUsed : string? = 'N/A
  selfLink : string? = 'N/A
  createdDate : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  alternateLink : string? = 'N/A
  downloadUrl : string? = 'N/A
  editable : string? = 'N/A
  embedLink : string? = 'N/A
  explicitlyTrashed : string? = 'N/A
  exportLinks : string? = 'N/A
  fileExtension : string? = 'N/A
  fileSize : string? = 'N/A
  imageMediaMetadata : string? = 'N/A
  indexableText : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  lastViewedByMeDate : string? = 'N/A
  md5Checksum : string? = 'N/A
  modifiedByMeDate : string? = 'N/A
  originalFilename : string? = 'N/A
  ownerNames : string? = 'N/A
  parents : string? = 'N/A
  sharedWithMeDate : string? = 'N/A
  thumbnail : string? = 'N/A
  thumbnailLink : string? = 'N/A
  userPermission : string? = 'N/A
  webContentLink : string? = 'N/A
  writersCanShare : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates file metadata and/or content. This method supports patch semantics.

fileId: The ID of the file to update.

pinned: Whether to pin the new revision.

convert: Whether to convert this file to the corresponding Google Docs format.

ocr: Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

ocrLanguage: If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

sourceLanguage: The language of the original file to be translated.

targetLanguage: Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.

timedTextLanguage: The language of the timed text.

timedTextTrackName: The timed text track name.

updateViewedDate: Whether to update the view date after successfully updating the file.

newRevision: Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.

setModifiedDate: Whether to set the modified date with the supplied modified date.

id: The id of the file.

description: A short description of the file.

kind: The type of file. This is always drive#file.

title: The title of this file.

etag: ETag of the file.

labels: A group of labels for the file.

quotaBytesUsed: The number of quota bytes used by this file.

selfLink: A link back to this file.

createdDate: Create time for this file (formatted ISO8601 timestamp).

modifiedDate: Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

mimeType: The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content’s MIME type.

alternateLink: A link for opening the file in using a relevant Google editor or viewer.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

editable: Whether the file can be edited by the current user.

embedLink: A link for embedding the file.

explicitlyTrashed: Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.

exportLinks: Links for exporting Google Docs to specific formats.

fileExtension: The file extension used when downloading this file. This field is set from the title when inserting or uploading new content. This will only be populated on files with content stored in Drive.

fileSize: The size of the file in bytes. This will only be populated on files with content stored in Drive.

imageMediaMetadata: Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

indexableText: Indexable text attributes for the file (can only be written)

lastModifyingUserName: Name of the last user to modify this file. This will only be populated if a user has edited this file.

lastViewedByMeDate: Last time this file was viewed by the user (formatted RFC 3339 timestamp).

md5Checksum: An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.

modifiedByMeDate: Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

originalFilename: The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.

ownerNames: Name(s) of the owner(s) of this file.

parents: Collection of parent folders which contain this file. Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.

sharedWithMeDate: Time at which this file was shared with the user (formatted RFC 3339 timestamp).

thumbnail: Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.

thumbnailLink: A link to the file’s thumbnail.

userPermission: The permissions for the authenticated user on this file.

webContentLink: A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

writersCanShare: Whether writers can share the document with other users.

procedure

(drive-files-copy 
  #:fileId fileId 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:id id 
  #:description description 
  #:kind kind 
  #:title title 
  #:etag etag 
  #:labels labels 
  #:quotaBytesUsed quotaBytesUsed 
  #:selfLink selfLink 
  #:createdDate createdDate 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:alternateLink alternateLink 
  #:downloadUrl downloadUrl 
  #:editable editable 
  #:embedLink embedLink 
  #:explicitlyTrashed explicitlyTrashed 
  #:exportLinks exportLinks 
  #:fileExtension fileExtension 
  #:fileSize fileSize 
  #:imageMediaMetadata imageMediaMetadata 
  #:indexableText indexableText 
  #:lastModifyingUserName lastModifyingUserName 
  #:lastViewedByMeDate lastViewedByMeDate 
  #:md5Checksum md5Checksum 
  #:modifiedByMeDate modifiedByMeDate 
  #:originalFilename originalFilename 
  #:ownerNames ownerNames 
  #:parents parents 
  #:sharedWithMeDate sharedWithMeDate 
  #:thumbnail thumbnail 
  #:thumbnailLink thumbnailLink 
  #:userPermission userPermission 
  #:webContentLink webContentLink 
  #:writersCanShare writersCanShare 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  pinned : string? = 'N/A
  convert : string? = 'N/A
  ocr : string? = 'N/A
  ocrLanguage : string? = 'N/A
  sourceLanguage : string? = 'N/A
  targetLanguage : string? = 'N/A
  timedTextLanguage : string? = 'N/A
  timedTextTrackName : string? = 'N/A
  id : string? = 'N/A
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  etag : string? = 'N/A
  labels : string? = 'N/A
  quotaBytesUsed : string? = 'N/A
  selfLink : string? = 'N/A
  createdDate : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  alternateLink : string? = 'N/A
  downloadUrl : string? = 'N/A
  editable : string? = 'N/A
  embedLink : string? = 'N/A
  explicitlyTrashed : string? = 'N/A
  exportLinks : string? = 'N/A
  fileExtension : string? = 'N/A
  fileSize : string? = 'N/A
  imageMediaMetadata : string? = 'N/A
  indexableText : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  lastViewedByMeDate : string? = 'N/A
  md5Checksum : string? = 'N/A
  modifiedByMeDate : string? = 'N/A
  originalFilename : string? = 'N/A
  ownerNames : string? = 'N/A
  parents : string? = 'N/A
  sharedWithMeDate : string? = 'N/A
  thumbnail : string? = 'N/A
  thumbnailLink : string? = 'N/A
  userPermission : string? = 'N/A
  webContentLink : string? = 'N/A
  writersCanShare : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Creates a copy of the specified file.

fileId: The ID of the file to copy.

pinned: Whether to pin the head revision of the new copy.

convert: Whether to convert this file to the corresponding Google Docs format.

ocr: Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

ocrLanguage: If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

sourceLanguage: The language of the original file to be translated.

targetLanguage: Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.

timedTextLanguage: The language of the timed text.

timedTextTrackName: The timed text track name.

id: The id of the file.

description: A short description of the file.

kind: The type of file. This is always drive#file.

title: The title of this file.

etag: ETag of the file.

labels: A group of labels for the file.

quotaBytesUsed: The number of quota bytes used by this file.

selfLink: A link back to this file.

createdDate: Create time for this file (formatted ISO8601 timestamp).

modifiedDate: Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

mimeType: The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content’s MIME type.

alternateLink: A link for opening the file in using a relevant Google editor or viewer.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

editable: Whether the file can be edited by the current user.

embedLink: A link for embedding the file.

explicitlyTrashed: Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.

exportLinks: Links for exporting Google Docs to specific formats.

fileExtension: The file extension used when downloading this file. This field is set from the title when inserting or uploading new content. This will only be populated on files with content stored in Drive.

fileSize: The size of the file in bytes. This will only be populated on files with content stored in Drive.

imageMediaMetadata: Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

indexableText: Indexable text attributes for the file (can only be written)

lastModifyingUserName: Name of the last user to modify this file. This will only be populated if a user has edited this file.

lastViewedByMeDate: Last time this file was viewed by the user (formatted RFC 3339 timestamp).

md5Checksum: An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.

modifiedByMeDate: Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

originalFilename: The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.

ownerNames: Name(s) of the owner(s) of this file.

parents: Collection of parent folders which contain this file. Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.

sharedWithMeDate: Time at which this file was shared with the user (formatted RFC 3339 timestamp).

thumbnail: Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.

thumbnailLink: A link to the file’s thumbnail.

userPermission: The permissions for the authenticated user on this file.

webContentLink: A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

writersCanShare: Whether writers can share the document with other users.

procedure

(drive-files-trash #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Moves a file to the trash.

fileId: The ID of the file to trash.

procedure

(drive-files-untrash #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Restores a file from the trash.

fileId: The ID of the file to untrash.

procedure

(drive-files-delete #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Permanently deletes a file by ID. Skips the trash.

fileId: The ID of the file to delete.

procedure

(drive-files-update 
  #:fileId fileId 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:updateViewedDate updateViewedDate 
  #:newRevision newRevision 
  #:setModifiedDate setModifiedDate 
  #:id id 
  #:description description 
  #:kind kind 
  #:title title 
  #:etag etag 
  #:labels labels 
  #:quotaBytesUsed quotaBytesUsed 
  #:selfLink selfLink 
  #:createdDate createdDate 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:alternateLink alternateLink 
  #:downloadUrl downloadUrl 
  #:editable editable 
  #:embedLink embedLink 
  #:explicitlyTrashed explicitlyTrashed 
  #:exportLinks exportLinks 
  #:fileExtension fileExtension 
  #:fileSize fileSize 
  #:imageMediaMetadata imageMediaMetadata 
  #:indexableText indexableText 
  #:lastModifyingUserName lastModifyingUserName 
  #:lastViewedByMeDate lastViewedByMeDate 
  #:md5Checksum md5Checksum 
  #:modifiedByMeDate modifiedByMeDate 
  #:originalFilename originalFilename 
  #:ownerNames ownerNames 
  #:parents parents 
  #:sharedWithMeDate sharedWithMeDate 
  #:thumbnail thumbnail 
  #:thumbnailLink thumbnailLink 
  #:userPermission userPermission 
  #:webContentLink webContentLink 
  #:writersCanShare writersCanShare 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  pinned : string? = 'N/A
  convert : string? = 'N/A
  ocr : string? = 'N/A
  ocrLanguage : string? = 'N/A
  sourceLanguage : string? = 'N/A
  targetLanguage : string? = 'N/A
  timedTextLanguage : string? = 'N/A
  timedTextTrackName : string? = 'N/A
  updateViewedDate : string? = 'N/A
  newRevision : string? = 'N/A
  setModifiedDate : string? = 'N/A
  id : string? = 'N/A
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  etag : string? = 'N/A
  labels : string? = 'N/A
  quotaBytesUsed : string? = 'N/A
  selfLink : string? = 'N/A
  createdDate : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  alternateLink : string? = 'N/A
  downloadUrl : string? = 'N/A
  editable : string? = 'N/A
  embedLink : string? = 'N/A
  explicitlyTrashed : string? = 'N/A
  exportLinks : string? = 'N/A
  fileExtension : string? = 'N/A
  fileSize : string? = 'N/A
  imageMediaMetadata : string? = 'N/A
  indexableText : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  lastViewedByMeDate : string? = 'N/A
  md5Checksum : string? = 'N/A
  modifiedByMeDate : string? = 'N/A
  originalFilename : string? = 'N/A
  ownerNames : string? = 'N/A
  parents : string? = 'N/A
  sharedWithMeDate : string? = 'N/A
  thumbnail : string? = 'N/A
  thumbnailLink : string? = 'N/A
  userPermission : string? = 'N/A
  webContentLink : string? = 'N/A
  writersCanShare : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates file metadata and/or content

fileId: The ID of the file to update.

pinned: Whether to pin the new revision.

convert: Whether to convert this file to the corresponding Google Docs format.

ocr: Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

ocrLanguage: If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

sourceLanguage: The language of the original file to be translated.

targetLanguage: Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.

timedTextLanguage: The language of the timed text.

timedTextTrackName: The timed text track name.

updateViewedDate: Whether to update the view date after successfully updating the file.

newRevision: Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.

setModifiedDate: Whether to set the modified date with the supplied modified date.

id: The id of the file.

description: A short description of the file.

kind: The type of file. This is always drive#file.

title: The title of this file.

etag: ETag of the file.

labels: A group of labels for the file.

quotaBytesUsed: The number of quota bytes used by this file.

selfLink: A link back to this file.

createdDate: Create time for this file (formatted ISO8601 timestamp).

modifiedDate: Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

mimeType: The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content’s MIME type.

alternateLink: A link for opening the file in using a relevant Google editor or viewer.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

editable: Whether the file can be edited by the current user.

embedLink: A link for embedding the file.

explicitlyTrashed: Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.

exportLinks: Links for exporting Google Docs to specific formats.

fileExtension: The file extension used when downloading this file. This field is set from the title when inserting or uploading new content. This will only be populated on files with content stored in Drive.

fileSize: The size of the file in bytes. This will only be populated on files with content stored in Drive.

imageMediaMetadata: Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

indexableText: Indexable text attributes for the file (can only be written)

lastModifyingUserName: Name of the last user to modify this file. This will only be populated if a user has edited this file.

lastViewedByMeDate: Last time this file was viewed by the user (formatted RFC 3339 timestamp).

md5Checksum: An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.

modifiedByMeDate: Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

originalFilename: The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.

ownerNames: Name(s) of the owner(s) of this file.

parents: Collection of parent folders which contain this file. Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.

sharedWithMeDate: Time at which this file was shared with the user (formatted RFC 3339 timestamp).

thumbnail: Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.

thumbnailLink: A link to the file’s thumbnail.

userPermission: The permissions for the authenticated user on this file.

webContentLink: A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

writersCanShare: Whether writers can share the document with other users.

2.2 replies

procedure

(drive-replies-list #:fileId fileId    
  #:commentId commentId    
  [#:maxResults maxResults    
  #:pageToken pageToken    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  maxResults : string? = 'N/A
  pageToken : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists all of the replies to a comment.

fileId: The ID of the file.

commentId: The ID of the comment.

maxResults: The maximum number of replies to include in the response, used for paging.

pageToken: The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.

procedure

(drive-replies-get #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a reply.

fileId: The ID of the file.

commentId: The ID of the comment.

replyId: The ID of the reply.

procedure

(drive-replies-insert #:fileId fileId    
  #:commentId commentId    
  [#:kind kind    
  #:content content    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replyId replyId    
  #:verb verb    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  kind : string? = 'N/A
  content : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  replyId : string? = 'N/A
  verb : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Creates a new reply to the given comment.

fileId: The ID of the file.

commentId: The ID of the comment.

kind: This is always drive#commentReply.

content: The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply’s content. This field is required on inserts if no verb is specified (resolve/reopen).

deleted: Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.

author: The user who wrote this reply.

createdDate: The date when this reply was first created.

htmlContent: HTML formatted content for this reply.

modifiedDate: The date when this reply was last modified.

replyId: The ID of the reply.

verb: The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: - "resolve" - To resolve a comment. - "reopen" - To reopen (un-resolve) a comment.

procedure

(drive-replies-patch #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:kind kind    
  #:content content    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:verb verb    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  kind : string? = 'N/A
  content : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  verb : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates an existing reply. This method supports patch semantics.

fileId: The ID of the file.

commentId: The ID of the comment.

replyId: The ID of the reply.

kind: This is always drive#commentReply.

content: The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply’s content. This field is required on inserts if no verb is specified (resolve/reopen).

deleted: Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.

author: The user who wrote this reply.

createdDate: The date when this reply was first created.

htmlContent: HTML formatted content for this reply.

modifiedDate: The date when this reply was last modified.

verb: The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: - "resolve" - To resolve a comment. - "reopen" - To reopen (un-resolve) a comment.

procedure

(drive-replies-delete #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Deletes a reply.

fileId: The ID of the file.

commentId: The ID of the comment.

replyId: The ID of the reply.

procedure

(drive-replies-update #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:kind kind    
  #:content content    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:verb verb    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  kind : string? = 'N/A
  content : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  verb : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates an existing reply.

fileId: The ID of the file.

commentId: The ID of the comment.

replyId: The ID of the reply.

kind: This is always drive#commentReply.

content: The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply’s content. This field is required on inserts if no verb is specified (resolve/reopen).

deleted: Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.

author: The user who wrote this reply.

createdDate: The date when this reply was first created.

htmlContent: HTML formatted content for this reply.

modifiedDate: The date when this reply was last modified.

verb: The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: - "resolve" - To resolve a comment. - "reopen" - To reopen (un-resolve) a comment.

2.3 parents

procedure

(drive-parents-list #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a file’s parents.

fileId: The ID of the file.

procedure

(drive-parents-get #:fileId fileId    
  #:parentId parentId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  parentId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a specific parent reference.

fileId: The ID of the file.

parentId: The ID of the parent.

procedure

(drive-parents-insert #:fileId fileId    
  [#:id id    
  #:kind kind    
  #:selfLink selfLink    
  #:isRoot isRoot    
  #:parentLink parentLink    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  id : string? = 'N/A
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  isRoot : string? = 'N/A
  parentLink : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Adds a parent folder for a file.

fileId: The ID of the file.

id: The ID of the parent.

kind: This is always drive#parentReference.

selfLink: A link back to this reference.

isRoot: Whether or not the parent is the root folder.

parentLink: A link to the parent.

procedure

(drive-parents-delete #:fileId fileId    
  #:parentId parentId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  parentId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Removes a parent from a file.

fileId: The ID of the file.

parentId: The ID of the parent.

2.4 about

procedure

(drive-about-get [#:includeSubscribed includeSubscribed 
  #:maxChangeIdCount maxChangeIdCount 
  #:startChangeId startChangeId 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  includeSubscribed : string? = 'N/A
  maxChangeIdCount : string? = 'N/A
  startChangeId : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets the information about the current user along with Drive API settings

includeSubscribed: Whether to include subscribed items when calculating the number of remaining change IDs

maxChangeIdCount: Maximum number of remaining change IDs to count

startChangeId: Change ID to start counting from when calculating number of remaining change IDs

2.5 apps

procedure

(drive-apps-list [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a user’s apps.

procedure

(drive-apps-get #:appId appId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  appId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a specific app.

appId: The ID of the app.

2.6 changes

procedure

(drive-changes-list [#:maxResults maxResults 
  #:pageToken pageToken 
  #:includeSubscribed includeSubscribed 
  #:startChangeId startChangeId 
  #:includeDeleted includeDeleted 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  maxResults : string? = 'N/A
  pageToken : string? = 'N/A
  includeSubscribed : string? = 'N/A
  startChangeId : string? = 'N/A
  includeDeleted : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists the changes for a user.

maxResults: Maximum number of changes to return.

pageToken: Page token for changes.

includeSubscribed: Whether to include subscribed items.

startChangeId: Change ID to start listing changes from.

includeDeleted: Whether to include deleted items.

procedure

(drive-changes-get #:changeId changeId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  changeId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a specific change.

changeId: The ID of the change.

2.7 children

procedure

(drive-children-list #:folderId folderId    
  [#:maxResults maxResults    
  #:pageToken pageToken    
  #:q q    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  folderId : string?
  maxResults : string? = 'N/A
  pageToken : string? = 'N/A
  q : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a folder’s children.

folderId: The ID of the folder.

maxResults: Maximum number of children to return.

pageToken: Page token for children.

q: Query string for searching children.

procedure

(drive-children-get #:childId childId    
  #:folderId folderId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  childId : string?
  folderId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a specific child reference.

childId: The ID of the child.

folderId: The ID of the folder.

procedure

(drive-children-insert #:folderId folderId    
  [#:id id    
  #:kind kind    
  #:selfLink selfLink    
  #:childLink childLink    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  folderId : string?
  id : string? = 'N/A
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  childLink : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Inserts a file into a folder.

folderId: The ID of the folder.

id: The ID of the child.

kind: This is always drive#childReference.

selfLink: A link back to this reference.

childLink: A link to the child.

procedure

(drive-children-delete #:childId childId    
  #:folderId folderId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  childId : string?
  folderId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Removes a child from a folder.

childId: The ID of the child.

folderId: The ID of the folder.

2.8 comments

procedure

(drive-comments-list #:fileId fileId    
  [#:maxResults maxResults    
  #:pageToken pageToken    
  #:includeDeleted includeDeleted    
  #:updatedMin updatedMin    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  maxResults : string? = 'N/A
  pageToken : string? = 'N/A
  includeDeleted : string? = 'N/A
  updatedMin : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a file’s comments.

fileId: The ID of the file.

maxResults: The maximum number of discussions to include in the response, used for paging.

pageToken: The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.

includeDeleted: If set, all comments, including deleted comments (with content stripped) will be returned.

updatedMin: Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.

procedure

(drive-comments-get #:fileId fileId    
  #:commentId commentId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a comment by ID.

fileId: The ID of the file.

commentId: The ID of the comment.

procedure

(drive-comments-insert #:fileId fileId    
  [#:anchor anchor    
  #:kind kind    
  #:status status    
  #:content content    
  #:context context    
  #:selfLink selfLink    
  #:deleted deleted    
  #:author author    
  #:commentId commentId    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  anchor : string? = 'N/A
  kind : string? = 'N/A
  status : string? = 'N/A
  content : string? = 'N/A
  context : string? = 'N/A
  selfLink : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  commentId : string? = 'N/A
  createdDate : string? = 'N/A
  fileTitle : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  replies : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Creates a new comment on the given file.

fileId: The ID of the file.

anchor: A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

kind: This is always drive#comment.

status: The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies.

content: The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment’s content.

context: The context of the file which is being commented on.

selfLink: A link back to this comment.

deleted: Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

author: The user who wrote this comment.

commentId: The ID of the comment.

createdDate: The date when this comment was first created.

fileTitle: The title of the file which this comment is addressing.

htmlContent: HTML formatted content for this comment.

modifiedDate: The date when this comment or any of its replies were last modified.

replies: Replies to this post.

procedure

(drive-comments-patch #:fileId fileId    
  #:commentId commentId    
  [#:anchor anchor    
  #:kind kind    
  #:status status    
  #:content content    
  #:context context    
  #:selfLink selfLink    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  anchor : string? = 'N/A
  kind : string? = 'N/A
  status : string? = 'N/A
  content : string? = 'N/A
  context : string? = 'N/A
  selfLink : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  fileTitle : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  replies : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates an existing comment. This method supports patch semantics.

fileId: The ID of the file.

commentId: The ID of the comment.

anchor: A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

kind: This is always drive#comment.

status: The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies.

content: The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment’s content.

context: The context of the file which is being commented on.

selfLink: A link back to this comment.

deleted: Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

author: The user who wrote this comment.

createdDate: The date when this comment was first created.

fileTitle: The title of the file which this comment is addressing.

htmlContent: HTML formatted content for this comment.

modifiedDate: The date when this comment or any of its replies were last modified.

replies: Replies to this post.

procedure

(drive-comments-delete #:fileId fileId    
  #:commentId commentId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Deletes a comment.

fileId: The ID of the file.

commentId: The ID of the comment.

procedure

(drive-comments-update #:fileId fileId    
  #:commentId commentId    
  [#:anchor anchor    
  #:kind kind    
  #:status status    
  #:content content    
  #:context context    
  #:selfLink selfLink    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  anchor : string? = 'N/A
  kind : string? = 'N/A
  status : string? = 'N/A
  content : string? = 'N/A
  context : string? = 'N/A
  selfLink : string? = 'N/A
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  fileTitle : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  replies : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates an existing comment.

fileId: The ID of the file.

commentId: The ID of the comment.

anchor: A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

kind: This is always drive#comment.

status: The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies.

content: The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment’s content.

context: The context of the file which is being commented on.

selfLink: A link back to this comment.

deleted: Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

author: The user who wrote this comment.

createdDate: The date when this comment was first created.

fileTitle: The title of the file which this comment is addressing.

htmlContent: HTML formatted content for this comment.

modifiedDate: The date when this comment or any of its replies were last modified.

replies: Replies to this post.

2.9 permissions

procedure

(drive-permissions-list #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a file’s permissions.

fileId: The ID for the file.

procedure

(drive-permissions-get #:fileId fileId    
  #:permissionId permissionId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  permissionId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a permission by ID.

fileId: The ID for the file.

permissionId: The ID for the permission.

procedure

(drive-permissions-insert 
  #:fileId fileId 
  [#:sendNotificationEmails sendNotificationEmails 
  #:id id 
  #:value value 
  #:name name 
  #:type type 
  #:kind kind 
  #:etag etag 
  #:role role 
  #:additionalRoles additionalRoles 
  #:selfLink selfLink 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  sendNotificationEmails : string? = 'N/A
  id : string? = 'N/A
  value : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  etag : string? = 'N/A
  role : string? = 'N/A
  additionalRoles : string? = 'N/A
  selfLink : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Inserts a permission for a file.

fileId: The ID for the file.

sendNotificationEmails: Whether to send notification emails.

id: The ID of the permission.

value: The email address or domain name for the entity. This is not populated in responses.

name: The name for this permission.

type: The account type. Allowed values are: - user - group - domain - anyone

kind: This is always drive#permission.

etag: The ETag of the permission.

role: The primary role for this user. Allowed values are: - owner - reader - writer

additionalRoles: Additional roles for this user. Only commenter is currently allowed.

selfLink: A link back to this permission.

authKey: The authkey parameter required for this permission.

photoLink: A link to the profile photo, if available.

withLink: Whether the link is required for this permission.

procedure

(drive-permissions-patch #:fileId fileId 
  #:permissionId permissionId 
  [#:id id 
  #:value value 
  #:name name 
  #:type type 
  #:kind kind 
  #:etag etag 
  #:role role 
  #:additionalRoles additionalRoles 
  #:selfLink selfLink 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  permissionId : string?
  id : string? = 'N/A
  value : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  etag : string? = 'N/A
  role : string? = 'N/A
  additionalRoles : string? = 'N/A
  selfLink : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates a permission. This method supports patch semantics.

fileId: The ID for the file.

permissionId: The ID for the permission.

id: The ID of the permission.

value: The email address or domain name for the entity. This is not populated in responses.

name: The name for this permission.

type: The account type. Allowed values are: - user - group - domain - anyone

kind: This is always drive#permission.

etag: The ETag of the permission.

role: The primary role for this user. Allowed values are: - owner - reader - writer

additionalRoles: Additional roles for this user. Only commenter is currently allowed.

selfLink: A link back to this permission.

authKey: The authkey parameter required for this permission.

photoLink: A link to the profile photo, if available.

withLink: Whether the link is required for this permission.

procedure

(drive-permissions-delete #:fileId fileId 
  #:permissionId permissionId 
  [#:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  permissionId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Deletes a permission from a file.

fileId: The ID for the file.

permissionId: The ID for the permission.

procedure

(drive-permissions-update #:fileId fileId 
  #:permissionId permissionId 
  [#:id id 
  #:value value 
  #:name name 
  #:type type 
  #:kind kind 
  #:etag etag 
  #:role role 
  #:additionalRoles additionalRoles 
  #:selfLink selfLink 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  permissionId : string?
  id : string? = 'N/A
  value : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  etag : string? = 'N/A
  role : string? = 'N/A
  additionalRoles : string? = 'N/A
  selfLink : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates a permission.

fileId: The ID for the file.

permissionId: The ID for the permission.

id: The ID of the permission.

value: The email address or domain name for the entity. This is not populated in responses.

name: The name for this permission.

type: The account type. Allowed values are: - user - group - domain - anyone

kind: This is always drive#permission.

etag: The ETag of the permission.

role: The primary role for this user. Allowed values are: - owner - reader - writer

additionalRoles: Additional roles for this user. Only commenter is currently allowed.

selfLink: A link back to this permission.

authKey: The authkey parameter required for this permission.

photoLink: A link to the profile photo, if available.

withLink: Whether the link is required for this permission.

2.10 revisions

procedure

(drive-revisions-list #:fileId fileId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Lists a file’s revisions.

fileId: The ID of the file.

procedure

(drive-revisions-get #:fileId fileId    
  #:revisionId revisionId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  revisionId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Gets a specific revision.

fileId: The ID of the file.

revisionId: The ID of the revision.

procedure

(drive-revisions-patch 
  #:fileId fileId 
  #:revisionId revisionId 
  [#:id id 
  #:kind kind 
  #:etag etag 
  #:selfLink selfLink 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:downloadUrl downloadUrl 
  #:exportLinks exportLinks 
  #:fileSize fileSize 
  #:lastModifyingUserName lastModifyingUserName 
  #:md5Checksum md5Checksum 
  #:originalFilename originalFilename 
  #:pinned pinned 
  #:publishAuto publishAuto 
  #:published published 
  #:publishedLink publishedLink 
  #:publishedOutsideDomain publishedOutsideDomain 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  revisionId : string?
  id : string? = 'N/A
  kind : string? = 'N/A
  etag : string? = 'N/A
  selfLink : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  downloadUrl : string? = 'N/A
  exportLinks : string? = 'N/A
  fileSize : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  md5Checksum : string? = 'N/A
  originalFilename : string? = 'N/A
  pinned : string? = 'N/A
  publishAuto : string? = 'N/A
  published : string? = 'N/A
  publishedLink : string? = 'N/A
  publishedOutsideDomain : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates a revision. This method supports patch semantics.

fileId: The ID for the file.

revisionId: The ID for the revision.

id: The ID of the revision.

kind: This is always drive#revision.

etag: The ETag of the revision.

selfLink: A link back to this revision.

modifiedDate: Last time this revision was modified (formatted RFC 3339 timestamp).

mimeType: The MIME type of the revision.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

exportLinks: Links for exporting Google Docs to specific formats.

fileSize: The size of the revision in bytes. This will only be populated on files with content stored in Drive.

lastModifyingUserName: Name of the last user to modify this revision.

md5Checksum: An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.

originalFilename: The original filename when this revision was created. This will only be populated on files with content stored in Drive.

pinned: Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.

publishAuto: Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.

published: Whether this revision is published. This is only populated and can only be modified for Google Docs.

publishedLink: A link to the published revision.

publishedOutsideDomain: Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.

procedure

(drive-revisions-delete #:fileId fileId    
  #:revisionId revisionId    
  [#:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  revisionId : string?
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Removes a revision.

fileId: The ID of the file.

revisionId: The ID of the revision.

procedure

(drive-revisions-update 
  #:fileId fileId 
  #:revisionId revisionId 
  [#:id id 
  #:kind kind 
  #:etag etag 
  #:selfLink selfLink 
  #:modifiedDate modifiedDate 
  #:mimeType mimeType 
  #:downloadUrl downloadUrl 
  #:exportLinks exportLinks 
  #:fileSize fileSize 
  #:lastModifyingUserName lastModifyingUserName 
  #:md5Checksum md5Checksum 
  #:originalFilename originalFilename 
  #:pinned pinned 
  #:publishAuto publishAuto 
  #:published published 
  #:publishedLink publishedLink 
  #:publishedOutsideDomain publishedOutsideDomain 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  fileId : string?
  revisionId : string?
  id : string? = 'N/A
  kind : string? = 'N/A
  etag : string? = 'N/A
  selfLink : string? = 'N/A
  modifiedDate : string? = 'N/A
  mimeType : string? = 'N/A
  downloadUrl : string? = 'N/A
  exportLinks : string? = 'N/A
  fileSize : string? = 'N/A
  lastModifyingUserName : string? = 'N/A
  md5Checksum : string? = 'N/A
  originalFilename : string? = 'N/A
  pinned : string? = 'N/A
  publishAuto : string? = 'N/A
  published : string? = 'N/A
  publishedLink : string? = 'N/A
  publishedOutsideDomain : string? = 'N/A
  alt : string? = 'N/A
  fields : string? = 'N/A
  key : string? = (api-key)
  oauth_token : string? = 'N/A
  prettyPrint : string? = 'N/A
  quotaUser : string? = 'N/A
  userIp : string? = 'N/A
Updates a revision.

fileId: The ID for the file.

revisionId: The ID for the revision.

id: The ID of the revision.

kind: This is always drive#revision.

etag: The ETag of the revision.

selfLink: A link back to this revision.

modifiedDate: Last time this revision was modified (formatted RFC 3339 timestamp).

mimeType: The MIME type of the revision.

downloadUrl: Short term download URL for the file. This will only be populated on files with content stored in Drive.

exportLinks: Links for exporting Google Docs to specific formats.

fileSize: The size of the revision in bytes. This will only be populated on files with content stored in Drive.

lastModifyingUserName: Name of the last user to modify this revision.

md5Checksum: An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.

originalFilename: The original filename when this revision was created. This will only be populated on files with content stored in Drive.

pinned: Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.

publishAuto: Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.

published: Whether this revision is published. This is only populated and can only be modified for Google Docs.

publishedLink: A link to the published revision.

publishedOutsideDomain: Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.