---
title: "POST /files/{fileId}/copy"
method: POST
path: "/files/{fileId}/copy"
tags: ["files"]
---

# POST /files/{fileId}/copy

`POST /files/{fileId}/copy`

Creates a copy of a file and applies any requested updates with patch semantics. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).

## Path parameters

- `fileId` string, required

## Query parameters

- `enforceSingleParent` boolean
- `ignoreDefaultVisibility` boolean
- `includeLabels` string
- `includePermissionsForView` string
- `keepRevisionForever` boolean
- `ocrLanguage` string
- `supportsAllDrives` boolean
- `supportsTeamDrives` boolean

## Request body

- File — The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
  - `mimeType` string — The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.
  - `trashingUser` User — Information about a Drive user.
    - `emailAddress` string — Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    - `displayName` string — Output only. A plain text displayable name for this user.
    - `photoLink` string — Output only. A link to the user's profile photo, if available.
    - `me` boolean — Output only. Whether this user is the requesting user.
    - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
    - `permissionId` string — Output only. The user's ID as visible in Permission resources.
  - `sha256Checksum` string — Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.
  - `trashed` boolean — Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner's trash until it's permanently deleted.
  - `fullFileExtension` string — Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it's not cleared if the new name doesn't contain a valid extension.
  - `isAppAuthorized` boolean — Output only. Whether the file was created or opened by the requesting app.
  - `originalFilename` string — The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
  - `modifiedByMeTime` string, date-time — The last time the file was modified by the user (RFC 3339 date-time).
  - `driveId` string — Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
  - `copyRequiresWriterPermission` boolean — Whether the options to copy, print, or download this file should be disabled for readers and commenters.
  - `permissionIds` string[] — Output only. List of permission IDs for users with access to this file.
  - `parents` string[] — The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn't supported. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
  - `owners` User[] — Output only. The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.
    - `emailAddress` string — Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    - `displayName` string — Output only. A plain text displayable name for this user.
    - `photoLink` string — Output only. A link to the user's profile photo, if available.
    - `me` boolean — Output only. Whether this user is the requesting user.
    - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
    - `permissionId` string — Output only. The user's ID as visible in Permission resources.
  - `iconLink` string — Output only. A static, unauthenticated link to the file's icon.
  - `linkShareMetadata` object — Contains details about the link URLs that clients are using to refer to this item.
    - `securityUpdateEligible` boolean — Output only. Whether the file is eligible for security update.
    - `securityUpdateEnabled` boolean — Output only. Whether the security update is enabled for this file.
  - `thumbnailVersion` string, int64 — Output only. The thumbnail version for use in thumbnail cache invalidation.
  - `trashedTime` string, date-time — The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
  - `headRevisionId` string — Output only. The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.
  - `videoMediaMetadata` object — Output only. Additional metadata about video media. This may not be available immediately upon upload.
    - `durationMillis` string, int64 — Output only. The duration of the video in milliseconds.
    - `width` integer — Output only. The width of the video in pixels.
    - `height` integer — Output only. The height of the video in pixels.
  - `lastModifyingUser` User — Information about a Drive user.
    - `emailAddress` string — Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    - `displayName` string — Output only. A plain text displayable name for this user.
    - `photoLink` string — Output only. A link to the user's profile photo, if available.
    - `me` boolean — Output only. Whether this user is the requesting user.
    - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
    - `permissionId` string — Output only. The user's ID as visible in Permission resources.
  - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`.
  - `folderColorRgb` string — The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.
  - `createdTime` string, date-time — The time at which the file was created (RFC 3339 date-time).
  - `modifiedByMe` boolean — Output only. Whether the file has been modified by this user.
  - `sharedWithMeTime` string, date-time — The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
  - `resourceKey` string — Output only. A key needed to access the item via a shared link.
  - `modifiedTime` string, date-time — he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
  - `ownedByMe` boolean — Output only. Whether the user owns the file. Not populated for items in shared drives.
  - `sha1Checksum` string — Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.
  - `quotaBytesUsed` string, int64 — Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
  - `sharingUser` User — Information about a Drive user.
    - `emailAddress` string — Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    - `displayName` string — Output only. A plain text displayable name for this user.
    - `photoLink` string — Output only. A link to the user's profile photo, if available.
    - `me` boolean — Output only. Whether this user is the requesting user.
    - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
    - `permissionId` string — Output only. The user's ID as visible in Permission resources.
  - `description` string — A short description of the file.
  - `permissions` Permission[] — Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
    - `allowFileDiscovery` boolean — Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.
    - `displayName` string — Output only. The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User's full name, as defined for their Google Account, such as "Dana A." * `group` - Name of the Google Group, such as "The Company Administrators." * `domain` - String domain name, such as "cymbalgroup.com." * `anyone` - No `displayName` is present.
    - `expirationTime` string, date-time — The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
    - `photoLink` string — Output only. A link to the user's profile photo, if available.
    - `inheritedPermissionsDisabled` boolean — When `true`, only organizers, owners, and users with permissions added directly on the item can access it.
    - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#permission"`.
    - `domain` string — Output only. The domain to which this permission refers.
    - `view` string — Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission's role is `publishedReader`. * `metadata`: The item is only visible to the `metadata` view because the item has limited access and the scope has at least read access to the parent. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).
    - `emailAddress` string — Output only. The email address of the user or group to which this permission refers.
    - `role` string — The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
    - `deleted` boolean — Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.
    - `teamDrivePermissionDetails` object[] — Output only. Deprecated: Output only. Use `permissionDetails` instead.
      - `inheritedFrom` string — Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
      - `inherited` boolean — Deprecated: Output only. Use `permissionDetails/inherited` instead.
      - `teamDrivePermissionType` string — Deprecated: Output only. Use `permissionDetails/permissionType` instead.
      - `role` string — Deprecated: Output only. Use `permissionDetails/role` instead.
    - `type` string — The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.
    - `pendingOwner` boolean — Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren't in a shared drive.
    - `id` string — Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.
    - `permissionDetails` object[] — Output only. Details of whether the permissions on this item are inherited or are directly on this item.
      - `inheritedFrom` string — Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
      - `inherited` boolean — Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
      - `permissionType` string — Output only. The permission type for this user. Supported values include: * `file` * `member`
      - `role` string — Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).
  - `name` string — The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.
  - `viewedByMeTime` string, date-time — The last time the file was viewed by the user (RFC 3339 date-time).
  - `viewedByMe` boolean — Output only. Whether the file has been viewed by this user.
  - `contentHints` object — Additional information about the content of the file. These fields are never populated in responses.
    - `thumbnail` object — A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
      - `mimeType` string — The MIME type of the thumbnail.
      - `image` string, byte — The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).
    - `indexableText` string — Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.
  - `id` string — The ID of the file.
  - `webViewLink` string — Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
  - `thumbnailLink` string — Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies. Consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `files.thumbnailLink` must be fetched using a credentialed request.
  - `hasThumbnail` boolean — Output only. Whether this file has a thumbnail. This doesn't indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
  - `fileExtension` string — Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
  - `appProperties` object — A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
  - `md5Checksum` string — Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
  - `clientEncryptionDetails` ClientEncryptionDetails — Details about the client-side encryption applied to the file.
    - `encryptionState` string — The encryption state of the file. The values expected here are: - encrypted - unencrypted
    - `decryptionMetadata` DecryptionMetadata — Representation of the CSE DecryptionMetadata.
      - `wrappedKey` string — The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.
      - `kaclsName` string — The name of the KACLS (Key ACL Service) used to encrypt the file.
      - `jwt` string — The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.
      - `kaclsId` string, int64 — The ID of the KACLS (Key ACL Service) used to encrypt the file.
      - `aes256GcmChunkSize` string — Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small
      - `encryptionResourceKeyHash` string — The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference
      - `keyFormat` string — Key format for the unwrapped key. Must be `tinkAesGcmKey`.
  - `exportLinks` object — Output only. Links for exporting Docs Editors files to specific formats.
  - `explicitlyTrashed` boolean — Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
  - `viewersCanCopyContent` boolean — Deprecated: Use `copyRequiresWriterPermission` instead.
  - `inheritedPermissionsDisabled` boolean — Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
  - `shortcutDetails` object — Information about a shortcut file.
    - `targetMimeType` string — Output only. The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
    - `targetResourceKey` string — Output only. The `resourceKey` for the target file.
    - `targetId` string — The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
  - `webContentLink` string — Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
  - `shared` boolean — Output only. Whether the file has been shared. Not populated for items in shared drives.
  - `capabilities` object — Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).
    - `canReadRevisions` boolean — Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item if it's not a folder, can be read.
    - `canUntrash` boolean — Output only. Whether the current user can restore this file from trash.
    - `canChangeViewersCanCopyContent` boolean — Deprecated: Output only.
    - `canDisableInheritedPermissions` boolean — Whether a user can disable inherited permissions.
    - `canMoveChildrenOutOfDrive` boolean — Output only. Whether the current user can move children of this folder outside of the shared drive. This is `false` when the item isn't a folder. Only populated for items in shared drives.
    - `canComment` boolean — Output only. Whether the current user can comment on this file.
    - `canListChildren` boolean — Output only. Whether the current user can list the children of this folder. This is always `false` when the item isn't a folder.
    - `canAddChildren` boolean — Output only. Whether the current user can add children to this folder. This is always `false` when the item isn't a folder.
    - `canTrashChildren` boolean — Output only. Whether the current user can trash children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.
    - `canModifyLabels` boolean — Output only. Whether the current user can modify the labels on the file.
    - `canAddMyDriveParent` boolean — Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
    - `canModifyContentRestriction` boolean — Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
    - `canMoveTeamDriveItem` boolean — Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
    - `canAcceptOwnership` boolean — Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
    - `canMoveItemIntoTeamDrive` boolean — Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
    - `canMoveChildrenWithinDrive` boolean — Output only. Whether the current user can move children of this folder within this drive. This is `false` when the item isn't a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.
    - `canMoveChildrenOutOfTeamDrive` boolean — Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
    - `canModifyEditorContentRestriction` boolean — Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
    - `canRemoveContentRestriction` boolean — Output only. Whether there's a content restriction on the file that can be removed by the current user.
    - `canAddFolderFromAnotherDrive` boolean — Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.
    - `canRename` boolean — Output only. Whether the current user can rename this file.
    - `canModifyOwnerContentRestriction` boolean — Output only. Whether the current user can add or modify content restrictions which are owner restricted.
    - `canMoveItemWithinTeamDrive` boolean — Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
    - `canShare` boolean — Output only. Whether the current user can modify the sharing settings for this file.
    - `canChangeSecurityUpdateEnabled` boolean — Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.
    - `canDownload` boolean — Output only. Whether the current user can download this file.
    - `canCopy` boolean — Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item if it's not a folder.
    - `canReadTeamDrive` boolean — Deprecated: Output only. Use `canReadDrive` instead.
    - `canMoveChildrenWithinTeamDrive` boolean — Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
    - `canMoveItemOutOfDrive` boolean — Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that's being added.
    - `canReadDrive` boolean — Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
    - `canAccessViaGenAi` boolean — Whether the current user can access this file via Gen AI features.
    - `canEdit` boolean — Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
    - `canMoveItemOutOfTeamDrive` boolean — Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
    - `canRemoveMyDriveParent` boolean — Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
    - `canChangeCopyRequiresWriterPermission` boolean — Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
    - `canMoveItemWithinDrive` boolean — Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that's being added and the parent that is being removed.
    - `canDelete` boolean — Output only. Whether the current user can delete this file.
    - `canTrash` boolean — Output only. Whether the current user can move this file to trash.
    - `canStartApproval` boolean — Whether the current user can start an approval on the file.
    - `canDeleteChildren` boolean — Output only. Whether the current user can delete children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.
    - `canReadLabels` boolean — Output only. Whether the current user can read the labels on the file.
    - `canChangeItemDownloadRestriction` boolean — Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
    - `canRemoveChildren` boolean — Output only. Whether the current user can remove children from this folder. This is always `false` when the item isn't a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
    - `canModifyContent` boolean — Output only. Whether the current user can modify the content of this file.
    - `canEnableInheritedPermissions` boolean — Whether a user can re-enable inherited permissions.
  - `version` string, int64 — Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
  - `downloadRestrictions` DownloadRestrictionsMetadata — Download restrictions applied to the file.
    - `itemDownloadRestriction` DownloadRestriction — A restriction for copy and download of the file.
      - `restrictedForReaders` boolean — Whether download and copy is restricted for readers.
      - `restrictedForWriters` boolean — Whether download and copy is restricted for writers. If true, download is also restricted for readers.
    - `effectiveDownloadRestrictionWithContext` DownloadRestriction — A restriction for copy and download of the file.
      - `restrictedForReaders` boolean — Whether download and copy is restricted for readers.
      - `restrictedForWriters` boolean — Whether download and copy is restricted for writers. If true, download is also restricted for readers.
  - `spaces` string[] — Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.
  - `imageMediaMetadata` object — Output only. Additional metadata about image media, if available.
    - `cameraMake` string — Output only. The make of the camera used to create the photo.
    - `location` object — Output only. Geographic location information stored in the image.
      - `longitude` number, double — Output only. The longitude stored in the image.
      - `latitude` number, double — Output only. The latitude stored in the image.
      - `altitude` number, double — Output only. The altitude stored in the image.
    - `meteringMode` string — Output only. The metering mode used to create the photo.
    - `sensor` string — Output only. The type of sensor used to create the photo.
    - `cameraModel` string — Output only. The model of the camera used to create the photo.
    - `isoSpeed` integer — Output only. The ISO speed used to create the photo.
    - `subjectDistance` integer — Output only. The distance to the subject of the photo, in meters.
    - `whiteBalance` string — Output only. The white balance mode used to create the photo.
    - `maxApertureValue` number, float — Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
    - `rotation` integer — Output only. The number of clockwise 90 degree rotations applied from the image's original orientation.
    - `aperture` number, float — Output only. The aperture used to create the photo (f-number).
    - `height` integer — Output only. The height of the image in pixels.
    - `time` string — Output only. The date and time the photo was taken (EXIF DateTime).
    - `lens` string — Output only. The lens used to create the photo.
    - `flashUsed` boolean — Output only. Whether a flash was used to create the photo.
    - `width` integer — Output only. The width of the image in pixels.
    - `colorSpace` string — Output only. The color space of the photo.
    - `exposureMode` string — Output only. The exposure mode used to create the photo.
    - `exposureTime` number, float — Output only. The length of the exposure, in seconds.
    - `exposureBias` number, float — Output only. The exposure bias of the photo (APEX value).
    - `focalLength` number, float — Output only. The focal length used to create the photo, in millimeters.
  - `properties` object — A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.
  - `starred` boolean — Whether the user has starred the file.
  - `contentRestrictions` ContentRestriction[] — Restrictions for accessing the content of the file. Only populated if such a restriction exists.
    - `readOnly` boolean — Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
    - `restrictingUser` User — Information about a Drive user.
      - `emailAddress` string — Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      - `displayName` string — Output only. A plain text displayable name for this user.
      - `photoLink` string — Output only. A link to the user's profile photo, if available.
      - `me` boolean — Output only. Whether this user is the requesting user.
      - `kind` string — Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
      - `permissionId` string — Output only. The user's ID as visible in Permission resources.
    - `ownerRestricted` boolean — Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.
    - `reason` string — Reason for why the content of the file is restricted. This is only mutable on requests that also set `readOnly=true`.
    - `restrictionTime` string, date-time — The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
    - `systemRestricted` boolean — Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
    - `type` string — Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
  - `labelInfo` object — Label information on the file.
    - `labels` Label[] — Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
      - `revisionId` string — The revision ID of the label.
      - `kind` string — This is always drive#label
      - `id` string — The ID of the label.
      - `fields` object — A map of the fields on the label, keyed by the field's ID.
  - `teamDriveId` string — Deprecated: Output only. Use `driveId` instead.
  - `size` string, int64 — Output only. Size in bytes of blobs and Google Workspace editor files. Won't be populated for files that have no size, like shortcuts and folders.
  - `hasAugmentedPermissions` boolean — Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
  - `writersCanShare` boolean — Whether users with only `writer` permission can modify the file's permissions. Not populated for items in shared drives.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/drive.md) · [All operations](https://skmtc.dev/google/apis/drive/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/drive/revisions/f3444ff3fae2/schema)
