An API for managing Drive Labels
- REST Resource: v2.labels
- REST Resource: v2.labels.locks
- REST Resource: v2.labels.permissions
- REST Resource: v2.labels.revisions
- REST Resource: v2.labels.revisions.locks
- REST Resource: v2.labels.revisions.permissions
- REST Resource: v2.limits
- REST Resource: v2.users
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 document:
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: v2.labels
Methods | |
---|---|
create
|
POST /v2/labels
Creates a new Label. |
delete
|
DELETE /v2/{name=labels/*}
Permanently deletes a Label and related metadata on Drive Items. |
delta
|
POST /v2/{name=labels/*}:delta
Updates a single Label by applying a set of update requests resulting in a new draft revision. |
disable
|
POST /v2/{name=labels/*}:disable
Disable a published Label. |
enable
|
POST /v2/{name=labels/*}:enable
Enable a disabled Label and restore it to its published state. |
get
|
GET /v2/{name=labels/*}
Get a label by its resource name. |
list
|
GET /v2/labels
List labels. |
publish
|
POST /v2/{name=labels/*}:publish
Publish all draft changes to the Label. |
updateLabelCopyMode
|
POST /v2/{name=labels/*}:updateLabelCopyMode
Updates a Label's CopyMode
. |
updatePermissions
|
PATCH /v2/{parent=labels/*}/permissions
Updates a Label's permissions. |
REST Resource: v2.labels.locks
Methods | |
---|---|
list
|
GET /v2/{parent=labels/*}/locks
Lists the LabelLocks on a Label. |
REST Resource: v2.labels.revisions
Methods | |
---|---|
updatePermissions
|
PATCH /v2/{parent=labels/*/revisions/*}/permissions
Updates a Label's permissions. |
REST Resource: v2.labels.revisions.locks
Methods | |
---|---|
list
|
GET /v2/{parent=labels/*/revisions/*}/locks
Lists the LabelLocks on a Label. |
REST Resource: v2.limits
Methods | |
---|---|
getLabel
|
GET /v2/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: v2.users
Methods | |
---|---|
getCapabilities
|
GET /v2/{name=users/*/capabilities}
Gets the user capabilities. |