1 API Parameters
_
2 Resources
2.1 replies
drive-replies-list
drive-replies-get
drive-replies-insert
drive-replies-patch
drive-replies-update
drive-replies-delete
2.2 parents
drive-parents-list
drive-parents-get
drive-parents-insert
drive-parents-delete
2.3 about
drive-about-get
2.4 apps
drive-apps-list
drive-apps-get
2.5 changes
drive-changes-list
drive-changes-get
2.6 children
drive-children-list
drive-children-get
drive-children-insert
drive-children-delete
2.7 comments
drive-comments-list
drive-comments-get
drive-comments-insert
drive-comments-patch
drive-comments-update
drive-comments-delete
2.8 files
drive-files-list
drive-files-touch
drive-files-get
drive-files-copy
drive-files-trash
drive-files-untrash
drive-files-insert
drive-files-patch
drive-files-update
drive-files-delete
2.9 permissions
drive-permissions-list
drive-permissions-get
drive-permissions-insert
drive-permissions-patch
drive-permissions-update
drive-permissions-delete
2.10 revisions
drive-revisions-list
drive-revisions-get
drive-revisions-patch
drive-revisions-update
drive-revisions-delete
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 replies

      2.2 parents

      2.3 about

      2.4 apps

      2.5 changes

      2.6 children

      2.7 comments

      2.8 files

      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 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    
  [#:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replyId replyId    
  #:verb verb    
  #:kind kind    
  #:content content    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  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
  kind : string? = 'N/A
  content : 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.

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.

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).

procedure

(drive-replies-patch #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:verb verb    
  #:kind kind    
  #:content content    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  verb : string? = 'N/A
  kind : string? = 'N/A
  content : 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.

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.

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).

procedure

(drive-replies-update #:fileId fileId    
  #:commentId commentId    
  #:replyId replyId    
  [#:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:verb verb    
  #:kind kind    
  #:content content    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  commentId : string?
  replyId : string?
  deleted : string? = 'N/A
  author : string? = 'N/A
  createdDate : string? = 'N/A
  htmlContent : string? = 'N/A
  modifiedDate : string? = 'N/A
  verb : string? = 'N/A
  kind : string? = 'N/A
  content : 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.

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.

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).

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.

2.2 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    
  #:isRoot isRoot    
  #:kind kind    
  #:selfLink selfLink    
  #: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
  isRoot : string? = 'N/A
  kind : string? = 'N/A
  selfLink : 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.

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

kind: This is always drive#parentReference.

selfLink: A link back to this reference.

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.3 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.4 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.5 changes

procedure

(drive-changes-list [#:includeSubscribed includeSubscribed 
  #:startChangeId startChangeId 
  #:includeDeleted includeDeleted 
  #:maxResults maxResults 
  #:pageToken pageToken 
  #:alt alt 
  #:fields fields 
  #:key key 
  #:oauth_token oauth_token 
  #:prettyPrint prettyPrint 
  #:quotaUser quotaUser 
  #:userIp userIp]) 
  jsexpr?
  includeSubscribed : string? = 'N/A
  startChangeId : string? = 'N/A
  includeDeleted : string? = 'N/A
  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 the changes for a user.

includeSubscribed: Whether to include subscribed items.

startChangeId: Change ID to start listing changes from.

includeDeleted: Whether to include deleted items.

maxResults: Maximum number of changes to return.

pageToken: Page token for changes.

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.6 children

procedure

(drive-children-list #:folderId folderId    
  [#:q q    
  #:maxResults maxResults    
  #:pageToken pageToken    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  folderId : string?
  q : string? = 'N/A
  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 a folder’s children.

folderId: The ID of the folder.

q: Query string for searching children.

maxResults: Maximum number of children to return.

pageToken: Page token for 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.7 comments

procedure

(drive-comments-list #:fileId fileId    
  [#:includeDeleted includeDeleted    
  #:updatedMin updatedMin    
  #:maxResults maxResults    
  #:pageToken pageToken    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  includeDeleted : string? = 'N/A
  updatedMin : string? = 'N/A
  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 a file’s comments.

fileId: The ID of the file.

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.

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.

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    
  #:context context    
  #:deleted deleted    
  #:author author    
  #:commentId commentId    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:kind kind    
  #:content content    
  #:selfLink selfLink    
  #:status status    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  anchor : string? = 'N/A
  context : 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
  kind : string? = 'N/A
  content : string? = 'N/A
  selfLink : string? = 'N/A
  status : 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.

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

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.

kind: This is always drive#comment.

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.

selfLink: A link back to this 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.

procedure

(drive-comments-patch #:fileId fileId    
  #:commentId commentId    
  [#:anchor anchor    
  #:context context    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:kind kind    
  #:content content    
  #:selfLink selfLink    
  #:status status    
  #: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
  context : 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
  kind : string? = 'N/A
  content : string? = 'N/A
  selfLink : string? = 'N/A
  status : 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.

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

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.

kind: This is always drive#comment.

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.

selfLink: A link back to this 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.

procedure

(drive-comments-update #:fileId fileId    
  #:commentId commentId    
  [#:anchor anchor    
  #:context context    
  #:deleted deleted    
  #:author author    
  #:createdDate createdDate    
  #:fileTitle fileTitle    
  #:htmlContent htmlContent    
  #:modifiedDate modifiedDate    
  #:replies replies    
  #:kind kind    
  #:content content    
  #:selfLink selfLink    
  #:status status    
  #: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
  context : 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
  kind : string? = 'N/A
  content : string? = 'N/A
  selfLink : string? = 'N/A
  status : 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.

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

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.

kind: This is always drive#comment.

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.

selfLink: A link back to this 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.

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.

2.8 files

procedure

(drive-files-list [#:q q    
  #:projection projection    
  #:maxResults maxResults    
  #:pageToken pageToken    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  q : string? = 'N/A
  projection : string? = 'N/A
  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 the user’s files.

q: Query string for searching files.

projection: This parameter is deprecated and has no function.

maxResults: Maximum number of files to return.

pageToken: Page token for 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    
  [#:updateViewedDate updateViewedDate    
  #:projection projection    
  #:alt alt    
  #:fields fields    
  #:key key    
  #:oauth_token oauth_token    
  #:prettyPrint prettyPrint    
  #:quotaUser quotaUser    
  #:userIp userIp])  jsexpr?
  fileId : string?
  updateViewedDate : string? = 'N/A
  projection : 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.

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

projection: This parameter is deprecated and has no function.

procedure

(drive-files-copy 
  #:fileId fileId 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:id id 
  #:quotaBytesUsed quotaBytesUsed 
  #: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 
  #:labels labels 
  #: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 
  #:description description 
  #:kind kind 
  #:title title 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  quotaBytesUsed : 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
  labels : 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
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

quotaBytesUsed: The number of quota bytes used by 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)

labels: A group of labels for the file.

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.

description: A short description of the file.

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

title: The title of this file.

selfLink: A link back to this file.

etag: ETag of the file.

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-insert 
  [#:pinned pinned 
  #:convert convert 
  #:ocr ocr 
  #:ocrLanguage ocrLanguage 
  #:sourceLanguage sourceLanguage 
  #:targetLanguage targetLanguage 
  #:timedTextLanguage timedTextLanguage 
  #:timedTextTrackName timedTextTrackName 
  #:id id 
  #:quotaBytesUsed quotaBytesUsed 
  #: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 
  #:labels labels 
  #: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 
  #:description description 
  #:kind kind 
  #:title title 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  quotaBytesUsed : 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
  labels : 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
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

quotaBytesUsed: The number of quota bytes used by 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)

labels: A group of labels for the file.

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.

description: A short description of the file.

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

title: The title of this file.

selfLink: A link back to this file.

etag: ETag of the file.

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 
  #:quotaBytesUsed quotaBytesUsed 
  #: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 
  #:labels labels 
  #: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 
  #:description description 
  #:kind kind 
  #:title title 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  quotaBytesUsed : 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
  labels : 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
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

quotaBytesUsed: The number of quota bytes used by 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)

labels: A group of labels for the file.

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.

description: A short description of the file.

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

title: The title of this file.

selfLink: A link back to this file.

etag: ETag of the file.

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 
  #:quotaBytesUsed quotaBytesUsed 
  #: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 
  #:labels labels 
  #: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 
  #:description description 
  #:kind kind 
  #:title title 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  quotaBytesUsed : 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
  labels : 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
  description : string? = 'N/A
  kind : string? = 'N/A
  title : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

quotaBytesUsed: The number of quota bytes used by 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)

labels: A group of labels for the file.

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.

description: A short description of the file.

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

title: The title of this file.

selfLink: A link back to this file.

etag: ETag of the file.

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.

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 
  #:additionalRoles additionalRoles 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:name name 
  #:type type 
  #:kind kind 
  #:selfLink selfLink 
  #:value value 
  #:role role 
  #:etag etag 
  #: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
  additionalRoles : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  value : string? = 'N/A
  role : string? = 'N/A
  etag : 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.

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

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.

name: The name for this permission.

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

kind: This is always drive#permission.

selfLink: A link back to this permission.

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

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

etag: The ETag of the permission.

procedure

(drive-permissions-patch #:fileId fileId 
  #:permissionId permissionId 
  [#:id id 
  #:additionalRoles additionalRoles 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:name name 
  #:type type 
  #:kind kind 
  #:selfLink selfLink 
  #:value value 
  #:role role 
  #:etag etag 
  #: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
  additionalRoles : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  value : string? = 'N/A
  role : string? = 'N/A
  etag : 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.

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

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.

name: The name for this permission.

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

kind: This is always drive#permission.

selfLink: A link back to this permission.

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

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

etag: The ETag of the permission.

procedure

(drive-permissions-update #:fileId fileId 
  #:permissionId permissionId 
  [#:id id 
  #:additionalRoles additionalRoles 
  #:authKey authKey 
  #:photoLink photoLink 
  #:withLink withLink 
  #:name name 
  #:type type 
  #:kind kind 
  #:selfLink selfLink 
  #:value value 
  #:role role 
  #:etag etag 
  #: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
  additionalRoles : string? = 'N/A
  authKey : string? = 'N/A
  photoLink : string? = 'N/A
  withLink : string? = 'N/A
  name : string? = 'N/A
  type : string? = 'N/A
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  value : string? = 'N/A
  role : string? = 'N/A
  etag : 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.

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

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.

name: The name for this permission.

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

kind: This is always drive#permission.

selfLink: A link back to this permission.

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

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

etag: The ETag of the 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.

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 
  #: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 
  #:kind kind 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  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
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

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.

kind: This is always drive#revision.

selfLink: A link back to this revision.

etag: The ETag of the revision.

procedure

(drive-revisions-update 
  #:fileId fileId 
  #:revisionId revisionId 
  [#:id id 
  #: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 
  #:kind kind 
  #:selfLink selfLink 
  #:etag etag 
  #: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
  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
  kind : string? = 'N/A
  selfLink : string? = 'N/A
  etag : 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.

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.

kind: This is always drive#revision.

selfLink: A link back to this revision.

etag: The ETag of the revision.

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.