v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-136454227.5 KB
revisions

Updates a revision with patch semantics. For more information, see Manage file revisions.

patch/files/{fileId}/revisions/{revisionId}

Path parameters

fileIdstring required

The ID of the file.

revisionIdstring required

The ID of the revision.

Request body

exportLinksobject

Output only. Links for exporting Docs Editors files to specific formats.

sizestring int64

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

md5Checksumstring

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

publishedboolean

Whether this revision is published. This is only applicable to Docs Editors files.

kindstring

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

publishedOutsideDomainboolean

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

publishAutoboolean

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

mimeTypestring

Output only. The MIME type of the revision.

modifiedTimestring date-time

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

publishedLinkstring

Output only. A link to the published revision. This is only populated for Docs Editors files.

originalFilenamestring

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

idstring

Output only. The ID of the revision.

keepForeverboolean

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

Response

Successful response