v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-136454227.5 KB
drives

Updates the metadata for a shared drive. For more information, see Manage shared drives.

patch/drives/{driveId}

Path parameters

driveIdstring required

The ID of the shared drive.

Query parameters

useDomainAdminAccessboolean

Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.

Request body

colorRgbstring

The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.

hiddenboolean

Whether the shared drive is hidden from default view.

themeIdstring

The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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.

createdTimestring date-time

The time at which the shared drive was created (RFC 3339 date-time).

kindstring

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#drive".

orgUnitIdstring

Output only. The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.

idstring

Output only. The ID of this shared drive which is also the ID of the top level folder of this shared drive.

backgroundImageLinkstring

Output only. A short-lived link to this shared drive's background image.

namestring

The name of this shared drive.

Response

Successful response