Google Drive Labels API

The Labels API from Google Drive — 18 operation(s) for labels.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 24

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/labels/{labelsId} Get a label · Get labels #
Ask an LLM
“How do I look up a label by its ID?”
“Can I fetch a specific revision of a label?”
Tell an agent
Get label {labelsId}.
Show the {view} view of label {labelsId}.
DELETE /v2/labels/{labelsId} Delete a label · Delete labels #
Ask an LLM
“How do I permanently delete a label and its metadata from Drive items?”
“Can I delete a label that is still published?”
Tell an agent destructive · confirm first
Delete label {labelsId}.
Permanently remove label {labelsId} and its Drive item metadata.
POST /v2/labels/{labelsId}:updateLabelEnabledAppSettings Enable a label in apps · Update label enabled app settings labels #
Ask an LLM
“How do I make a label usable in Google Docs or Gmail?”
“Can I change which Workspace apps a label is enabled in?”
Tell an agent
Set enabled app settings {enabledAppSettings} on label {labelsId}.
Enable label {labelsId} in the apps described by {enabledAppSettings}.
POST /v2/labels/{labelsId}:updateLabelCopyMode Set how a label copies · Update label copy mode labels #
Ask an LLM
“How do I control whether a label's values are copied when a Drive item is copied?”
“Can I stop a label from being copied to new files?”
Tell an agent
Set copy mode {copyMode} on label {labelsId}.
Make label {labelsId} copy values according to {copyMode}.
GET /v2/labels List labels · List labels #
Ask an LLM
“Which labels exist in my organization?”
“Can I list only published labels?”
Tell an agent
List all labels.
List labels with minimum role {minimumRole}.
POST /v2/labels Create a label · Create labels #
Ask an LLM
“How do I create a new label with fields?”
“Can I create a label as a draft and publish it later?”
Tell an agent
Create a {labelType} label named {name} with fields {fields}.
Create a new label {name} of type {labelType} in language {languageCode}.
POST /v2/labels/{labelsId}:enable Enable a disabled label · Enable labels #
Ask an LLM
“How do I turn a disabled label back on?”
“What happens to a disabled label when I enable it?”
Tell an agent
Enable disabled label {labelsId}.
Restore label {labelsId} to its published state.
POST /v2/labels/{labelsId}:disable Disable a published label · Disable labels #
Ask an LLM
“How do I temporarily turn off a label?”
“Can I disable a label without deleting it?”
Tell an agent
Disable label {labelsId}.
Disable label {labelsId} with policy {disabledPolicy}.
POST /v2/labels/{labelsId}:delta Apply a batch of changes to a label · Delta labels #
Ask an LLM
“How do I update several fields of a label in one request?”
“Can I apply a set of update requests to a label and keep it as a draft?”
Tell an agent
Apply update requests {requests} to label {labelsId}.
Batch update label {labelsId} with {requests} and keep it as a draft.
PATCH /v2/labels/{labelsId}/permissions Update a label's permissions · Update permissions labels #
Ask an LLM
“How do I change an existing permission on a label?”
“Can I update a permission grant on a label without recreating it?”
Tell an agent
Update the permission on label {labelsId} to {role}.
Change the existing permission on label {labelsId}.
GET /v2/labels/{labelsId}/permissions List a label's permissions · List permissions #
Ask an LLM
“Who has access to a label?”
“Can I see the permission grants on a label?”
Tell an agent
List the permissions on label {labelsId}.
Show who can manage label {labelsId}.
POST /v2/labels/{labelsId}/permissions Grant a user or group access to a label · Create permissions #
Ask an LLM
“How do I share a label with a user or group?”
“Can I give someone the role of viewer on a label?”
Tell an agent
Grant {role} to {email} on label {labelsId}.
Add a permission for {person} on label {labelsId} with role {role}.
POST /v2/labels/{labelsId}:publish Publish a label's draft changes · Publish labels #
Ask an LLM
“How do I publish the draft changes to a label?”
“What happens to previous draft revisions when I publish a label?”
Tell an agent
Publish label {labelsId}.
Publish the draft changes on label {labelsId}.
GET /v2/labels/{labelsId}/locks List locks on a label · List locks #
Ask an LLM
“Which fields of a label are locked?”
“Can I see the locks on a label?”
Tell an agent
List the locks on label {labelsId}.
Show which fields of label {labelsId} are locked.
POST /v2/labels/{labelsId}/permissions:batchUpdate Batch update label permissions · Batch update permissions #
Ask an LLM
“How do I grant several users access to a label in one request?”
“Can I update many label permissions at once?”
Tell an agent
Batch update the permissions on label {labelsId} with {requests}.
Grant multiple users access to label {labelsId} in one call.
DELETE /v2/labels/{labelsId}/permissions/{permissionsId} Revoke a user's access to a label · Delete permissions #
Ask an LLM
“How do I remove someone's access to a label?”
“Can I delete a single permission on a label?”
Tell an agent destructive · confirm first
Delete permission {permissionsId} on label {labelsId}.
Revoke the access grant {permissionsId} on label {labelsId}.
POST /v2/labels/{labelsId}/permissions:batchDelete Batch remove label permissions · Batch delete permissions #
Ask an LLM
“How do I revoke access for several users from a label at once?”
“Can I delete many label permission grants in one request?”
Tell an agent destructive · confirm first
Batch delete the permissions on label {labelsId} with {requests}.
Revoke several users' access to label {labelsId} in one call.
PATCH /v2/labels/{labelsId}/revisions/{revisionsId}/permissions Update a label revision's permissions · Update permissions revisions #
Ask an LLM
“How do I change the permissions on a specific label revision?”
“Can I update a permission grant on one label revision?”
Tell an agent
Update the permission on revision {revisionsId} of label {labelsId} to {role}.
Change the existing permission on label {labelsId} at revision {revisionsId}.
POST /v2/labels/{labelsId}/revisions/{revisionsId}/permissions Grant access to a label revision · Create permissions #
Ask an LLM
“How do I share a specific revision of a label with someone?”
“Can I give a user access to one label revision without affecting others?”
Tell an agent
Grant {role} to {email} on revision {revisionsId} of label {labelsId}.
Add a permission for {person} on label {labelsId} at revision {revisionsId}.
GET /v2/labels/{labelsId}/revisions/{revisionsId}/permissions List permissions on a label revision · List permissions #
Ask an LLM
“Who has access to a specific revision of a label?”
“Can I see the permission grants on one label revision?”
Tell an agent
List the permissions on revision {revisionsId} of label {labelsId}.
Show who can manage label {labelsId} at revision {revisionsId}.
POST /v2/labels/{labelsId}/revisions/{revisionsId}/permissions:batchUpdate Batch update label permissions · Batch update permissions #
Ask an LLM
“How do I grant several people access to a label revision at once?”
“Do label permissions need to be published after I change them?”
Tell an agent
Apply these permission changes to label {labelsId} revision {revisionsId}: {requests}.
Grant the listed principals access to label {labelsId} revision {revisionsId}.
DELETE /v2/labels/{labelsId}/revisions/{revisionsId}/permissions/{permissionsId} Revoke a label permission · Delete permissions #
Ask an LLM
“How do I remove one person's access to a label revision?”
“Can I delete a single label permission by its permission ID?”
Tell an agent destructive · confirm first
Delete permission {permissionsId} from label {labelsId} revision {revisionsId}.
Revoke access for principal {permissionsId} on label {labelsId} revision {revisionsId}.
POST /v2/labels/{labelsId}/revisions/{revisionsId}/permissions:batchDelete Batch delete label permissions · Batch delete permissions #
Ask an LLM
“How do I revoke several people's access to a label revision in one request?”
“Can I remove a list of label permissions by their IDs?”
Tell an agent destructive · confirm first
Delete these permissions from label {labelsId} revision {revisionsId}: {requests}.
Revoke the listed principals' access to label {labelsId} revision {revisionsId}.
GET /v2/labels/{labelsId}/revisions/{revisionsId}/locks List locks on a label revision · List locks #
Ask an LLM
“How do I see who has locked fields on a Drive label?”
“Which locks apply to a specific label revision?”
Tell an agent
List locks on revision {revisionsId} of label {labelsId}.
Show {pageSize} locks per page for label {labelsId} revision {revisionsId}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-drive:google-drive-labels-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-drive-labels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Drive Labels API
  version: v2
  description: Generated from Google's published Discovery document for Drive Labels API (drivelabels v2, revision 20261109). 24 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://drivelabels.googleapis.com
tags:


# --- truncated at 32 KB (113 KB total) ---
# Full source: https://artifacts.apis.io/google-drive/openapi/google-drive-labels-api-openapi.yml