Search + K

Command Palette

Search for a command to run...

Sign In

drive.revisions.get

GET /files/{fileId}/revisions/{revisionId}
Copy endpoint
https://www.googleapis.com/drive/v3

Gets a revision's metadata or content by ID. For more information, see Manage file revisions.

Parameters

path Path Parameters

Name Type
fileId required

The ID of the file.

string
revisionId required

The ID of the revision.

string

query Query Parameters

Name Type
acknowledgeAbuse

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides.

boolean
access_token

OAuth access token.

string
alt

Data format for response.

"json" | "media" | "proto"
callback

JSONP

string
fields

Selector specifying which fields to include in a partial response.

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

string
oauth_token

OAuth 2.0 token for the current user.

string
prettyPrint

Returns response with indentations and line breaks.

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

string
upload_protocol

Upload protocol for media (e.g. "raw", "multipart").

string
uploadType

Legacy upload protocol for media (e.g. "media", "multipart").

string
$.xgafv

V1 error format.

"1" | "2"

Responses

200 */*

Successful response

interface Revision {
exportLinks?: { };
id?: string;
keepForever?: boolean;
kind?: string;
lastModifyingUser?: User

Information about a Drive user.

interface User {
displayName?: string;
emailAddress?: string;
kind?: string;
me?: boolean;
permissionId?: string;
photoLink?: string;
}
;
md5Checksum?: string;
mimeType?: string;
modifiedTime?: string;
originalFilename?: string;
publishAuto?: boolean;
published?: boolean;
publishedLink?: string;
publishedOutsideDomain?: boolean;
size?: string;
}