Method: labels.updatePermissions

Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

HTTP request

PATCH https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/permissions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent Label resource name.

Query parameters

Parameters
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.

Request body

The request body contains an instance of LabelPermission.

Response body

If successful, the response body contains an instance of LabelPermission.

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.