drive.revisions.update
Updates a Google Drive file revision with patch semantics, enabling targeted changes to revision metadata like keepForever or published status without replacing the revision.
Instructions
Updates a revision with patch semantics. For more information, see Manage file revisions [HTTP PATCH] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON Revision object accepting exportLinks, id, keepForever, kind, lastModifyingUser, md5Checksum, mimeType, modifiedTime and 6 more fields; pass it via params or whole via body_file Siblings over the same resource: delete, get, list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | Yes | [URL path segment] The ID of the file. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON Revision object. | |
| revisionId | Yes | [URL path segment] The ID of the revision. | |
| request_body | No | Request body of type Revision: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| kind | No | ||
| size | No | ||
| mimeType | No | ||
| published | No | ||
| exportLinks | No | ||
| keepForever | No | ||
| md5Checksum | No | ||
| publishAuto | No | ||
| modifiedTime | No | ||
| publishedLink | No | ||
| originalFilename | No | ||
| lastModifyingUser | No | ||
| publishedOutsideDomain | No |