---
title: "PATCH /teamdrives/{teamDriveId}"
method: PATCH
path: "/teamdrives/{teamDriveId}"
tags: ["teamdrives"]
---

# PATCH /teamdrives/{teamDriveId}

`PATCH /teamdrives/{teamDriveId}`

Deprecated: Use `drives.update` instead.

## Path parameters

- `teamDriveId` string, required

## Query parameters

- `useDomainAdminAccess` boolean

## Request body

- TeamDrive — Deprecated: use the drive collection instead. Next ID: 33
  - `restrictions` object — A set of restrictions that apply to this Team Drive or items inside this Team Drive.
    - `copyRequiresWriterPermission` boolean — Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
    - `sharingFoldersRequiresOrganizerPermission` boolean — If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
    - `adminManagedRestrictions` boolean — Whether administrative privileges on this Team Drive are required to modify restrictions.
    - `domainUsersOnly` boolean — Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
    - `teamMembersOnly` boolean — Whether access to items inside this Team Drive is restricted to members of this Team Drive.
    - `downloadRestriction` 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.
  - `id` string — The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
  - `name` string — The name of this Team Drive.
  - `backgroundImageLink` string — A short-lived link to this Team Drive's background image.
  - `colorRgb` string — The color of this Team Drive as an RGB hex string. It can only be set on a `drive.teamdrives.update` request that does not set `themeId`.
  - `capabilities` object — Capabilities the current user has on this Team Drive.
    - `canDeleteTeamDrive` boolean — Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
    - `canChangeTeamMembersOnlyRestriction` boolean — Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.
    - `canRemoveChildren` boolean — Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
    - `canRenameTeamDrive` boolean — Whether the current user can rename this Team Drive.
    - `canChangeSharingFoldersRequiresOrganizerPermissionRestriction` boolean — Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive.
    - `canResetTeamDriveRestrictions` boolean — Whether the current user can reset the Team Drive restrictions to defaults.
    - `canDeleteChildren` boolean — Whether the current user can delete children from folders in this Team Drive.
    - `canCopy` boolean — Whether the current user can copy files in this Team Drive.
    - `canEdit` boolean — Whether the current user can edit files in this Team Drive
    - `canChangeDownloadRestriction` boolean — Output only. Whether the current user can change organizer-applied download restrictions of this shared drive.
    - `canListChildren` boolean — Whether the current user can list the children of folders in this Team Drive.
    - `canAddChildren` boolean — Whether the current user can add children to folders in this Team Drive.
    - `canDownload` boolean — Whether the current user can download files in this Team Drive.
    - `canChangeDomainUsersOnlyRestriction` boolean — Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.
    - `canTrashChildren` boolean — Whether the current user can trash children from folders in this Team Drive.
    - `canChangeCopyRequiresWriterPermissionRestriction` boolean — Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team Drive.
    - `canManageMembers` boolean — Whether the current user can add members to this Team Drive or remove them or change their role.
    - `canShare` boolean — Whether the current user can share files or folders in this Team Drive.
    - `canComment` boolean — Whether the current user can comment on files in this Team Drive.
    - `canReadRevisions` boolean — Whether the current user can read the revisions resource of files in this Team Drive.
    - `canRename` boolean — Whether the current user can rename files or folders in this Team Drive.
    - `canChangeTeamDriveBackground` boolean — Whether the current user can change the background of this Team Drive.
  - `backgroundImageFile` object — The background image file for a Team Drive.
    - `width` number, float — The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
    - `id` string — The ID of an image file in Drive to use for the background image.
    - `xCoordinate` number, float — The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
    - `yCoordinate` number, float — The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
  - `kind` string — Identifies what kind of resource this is. Value: the fixed string `"drive#teamDrive"`.
  - `orgUnitId` string — The organizational unit of this shared drive. This field is only populated on `drives.list` responses when the `useDomainAdminAccess` parameter is set to `true`.
  - `themeId` string — The ID of the theme from which the background image and color will be set. The set of possible `teamDriveThemes` can be retrieved from a `drive.about.get` response. When not specified on a `drive.teamdrives.create` request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set `colorRgb` or `backgroundImageFile`.
  - `createdTime` string, date-time — The time at which the Team Drive was created (RFC 3339 date-time).

## 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)
