drives

Creates a shared drive. For more information, see Manage shared drives.

Request

  • Base URL
    https://www.googleapis.com/drive/v3
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/drive
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/drive

Query parameters

requestIdstring required

Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.

Request body

backgroundImageLinkstring

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

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.

createdTimestring date-time

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

hiddenboolean

Whether the shared drive is hidden from default view.

idstring

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

kindstring

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

namestring

The name of this shared 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.

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.

Response

Successful response

backgroundImageLinkstring

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

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.

createdTimestring date-time

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

hiddenboolean

Whether the shared drive is hidden from default view.

idstring

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

kindstring

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

namestring

The name of this shared 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.

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.

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status