Method: labels.permissions.batchDelete

Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

HTTP request

POST https://drivelabels.googleapis.com/v2beta/labels/*/permissions:batchDelete

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (DeleteLabelPermissionRequest)
    }
  ],
  "useAdminAccess": boolean
}
Fields
requests[]

object (DeleteLabelPermissionRequest)

Required. The request message specifying the resources to update.

useAdminAccess

boolean

Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the useAdminAccess field in the DeleteLabelPermissionRequest messages must either be empty or match this field.

Response body

If successful, the response body is empty.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/drive.labels
  • https://www.googleapis.com/auth/drive.labels.readonly
  • https://www.googleapis.com/auth/drive.admin.labels
  • https://www.googleapis.com/auth/drive.admin.labels.readonly

For more information, see the OAuth 2.0 Overview.

DeleteLabelPermissionRequest

Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

JSON representation
{
  "name": string,
  "useAdminAccess": boolean
}
Fields
name

string

Required. Label Permission resource name.

useAdminAccess

boolean

Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.