- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- DeleteLabelPermissionRequest
- Try it!
Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.
HTTP request
POST https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions:batchDelete
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent
|
Required. The parent label resource name shared by all permissions being deleted. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests"
:
[
{
object (
|
| Fields | |
|---|---|
requests[]
|
Required. The request message specifying the resources to update. |
useAdminAccess
|
Set to |
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/drive.labels -
https://www.googleapis.com/auth/drive.admin.labels
For more information, see the Authorization guide .
DeleteLabelPermissionRequest
Deletes a label permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.
| JSON representation |
|---|
{ "name" : string , "useAdminAccess" : boolean } |
| Fields | |
|---|---|
name
|
Required. Label permission resource name. |
useAdminAccess
|
Set to |

