Files: patch

Request

HTTP Request

PATCH https://www.googleapis.com/drive/v1/files/id

Parameters

Parameter Name

Value

Description

Required Parameters

id

string

The ID for the file in question.

Optional Parameters

newRevision

boolean

Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision will be replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota).

updateModifiedDate

boolean

Controls updating the modified date of the file. If true, the modified date will be updated to the current time, regardless of whether other changes are being made. If false, the modified date will only be updated to the current time if other changes are also being made (changing the title, for example).