Method: drives.hide
Hides a shared drive from the default view.
HTTP request
POST https://www.googleapis.com/drive/v3/drives/{driveId}/hide
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
driveId |
string
The ID of the shared drive.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Drive
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/drive
Some scopes are restricted and require a security assessment for your app to use them. For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-17 UTC.
[null,null,["Last updated 2024-09-17 UTC."],[[["Hides a shared drive specified by `driveId` from the default view."],["Requires an empty request body and uses the `POST` method."],["A successful response returns a [Drive](/drive/api/reference/rest/v3/drives#Drive) object."],["Needs authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for hiding a shared drive using a `POST` HTTP request to the Google Drive API. The request URL includes a required `driveId` path parameter, specifying the drive to hide. The request body must be empty. Successful execution returns a `Drive` resource in the response body. This action requires the `https://www.googleapis.com/auth/drive` authorization scope. The provided link contains the instructions to test it live.\n"]]