Drive Labels API

An API for managing Drive Labels

Service: drivelabels.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://drivelabels.googleapis.com

REST Resource: v2beta.labels

Methods
create POST /v2beta/labels
Creates a new Label.
delete DELETE /v2beta/{name=labels/*}
Permanently deletes a Label and related metadata on Drive Items.
delta POST /v2beta/{name=labels/*}:delta
Updates a single Label by applying a set of update requests resulting in a new draft revision.
disable POST /v2beta/{name=labels/*}:disable
Disable a published Label.
enable POST /v2beta/{name=labels/*}:enable
Enable a disabled Label and restore it to its published state.
get GET /v2beta/{name=labels/*}
Get a label by its resource name.
list GET /v2beta/labels
List labels.
publish POST /v2beta/{name=labels/*}:publish
Publish all draft changes to the Label.
updateLabelCopyMode POST /v2beta/{name=labels/*}:updateLabelCopyMode
Updates a Label's CopyMode.

REST Resource: v2beta.labels.locks

Methods
list GET /v2beta/{parent=labels/*}/locks
Lists the Locks on a Label.

REST Resource: v2beta.labels.permissions

Methods
batchDelete POST /v2beta/labels/*/permissions:batchDelete
Deletes Label permissions.
batchUpdate POST /v2beta/{parent=labels/*}/permissions:batchUpdate
Updates Label permissions.
create POST /v2beta/{parent=labels/*}/permissions
Updates a Label's permissions.
delete DELETE /v2beta/{name=labels/*/permissions/*}
Deletes a Label's permission.
list GET /v2beta/{parent=labels/*}/permissions
Lists a Label's permissions.
patch PATCH /v2beta/{parent=labels/*/permissions/*}
Updates a Label's permissions.

REST Resource: v2beta.labels.revisions.locks

Methods
list GET /v2beta/{parent=labels/*/revisions/*}/locks
Lists the Locks on a Label.

REST Resource: v2beta.labels.revisions.permissions

Methods
batchDelete POST /v2beta/labels/*/revisions/*/permissions:batchDelete
Deletes Label permissions.
batchUpdate POST /v2beta/{parent=labels/*/revisions/*}/permissions:batchUpdate
Updates Label permissions.
create POST /v2beta/{parent=labels/*/revisions/*}/permissions
Updates a Label's permissions.
delete DELETE /v2beta/{name=labels/*/revisions/*/permissions/*}
Deletes a Label's permission.
list GET /v2beta/{parent=labels/*/revisions/*}/permissions
Lists a Label's permissions.
patch PATCH /v2beta/{parent=labels/*/revisions/*/permissions/*}
Updates a Label's permissions.

REST Resource: v2beta.limits

Methods
getLabel GET /v2beta/limits/label
Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.

REST Resource: v2beta.users

Methods
getCapabilities GET /v2beta/{name=users/*/capabilities}
Gets the user capabilities.

REST Resource: v2.labels

Methods
get GET /v2/{name=labels/*}
Get a label by its resource name.
list GET /v2/labels
List labels.