Google · Capability
Google Drive Labels API — Labels
Google Drive Labels API — Labels. 14 operations. Lead operation: Google Retrieve Labels. Self-contained Naftiko capability covering one Google business surface.
What You Can Do
GET
Googledrivelabelslabelslist
— Google Retrieve Labels
/v1/v2/labels
POST
Googledrivelabelslabelscreate
— Google Create Labels
/v1/v2/labels
DELETE
Googledrivelabelslabelsrevisionspermissionsdelete
— Google Delete Name
/v1/v2/{name}
POST
Googledrivelabelslabelsdelta
— Google Create Name:delta
/v1/v2/name-delta
POST
Googledrivelabelslabelsdisable
— Google Create Name:disable
/v1/v2/name-disable
POST
Googledrivelabelslabelsenable
— Google Create Name:enable
/v1/v2/name-enable
POST
Googledrivelabelslabelspublish
— Google Create Name:publish
/v1/v2/name-publish
POST
Googledrivelabelslabelsupdatelabelcopymode
— Google Create Name:updatelabelcopymode
/v1/v2/name-updatelabelcopymode
GET
Googledrivelabelslabelsrevisionslockslist
— Google Retrieve Parent Locks
/v1/v2/{parent}/locks
GET
Googledrivelabelslabelsrevisionspermissionslist
— Google Retrieve Parent Permissions
/v1/v2/{parent}/permissions
POST
Googledrivelabelslabelsrevisionspermissionscreate
— Google Create Parent Permissions
/v1/v2/{parent}/permissions
PATCH
Googledrivelabelslabelsrevisionsupdatepermissions
— Google Patch Parent Permissions
/v1/v2/{parent}/permissions
POST
Googledrivelabelslabelsrevisionspermissionsbatchdelete
— Google Create Parent Permissions:batchdelete
/v1/v2/{parent}/permissions-batchdelete
POST
Googledrivelabelslabelsrevisionspermissionsbatchupdate
— Google Create Parent Permissions:batchupdate
/v1/v2/{parent}/permissions-batchupdate
MCP Tools
google-retrieve-labels
Google Retrieve Labels
read-only
idempotent
google-create-labels
Google Create Labels
google-delete-name
Google Delete Name
idempotent
google-create-name-delta
Google Create Name:delta
google-create-name-disable
Google Create Name:disable
google-create-name-enable
Google Create Name:enable
google-create-name-publish
Google Create Name:publish
google-create-name-updatelabelcopymode
Google Create Name:updatelabelcopymode
google-retrieve-parent-locks
Google Retrieve Parent Locks
read-only
idempotent
google-retrieve-parent-permissions
Google Retrieve Parent Permissions
read-only
idempotent
google-create-parent-permissions
Google Create Parent Permissions
google-patch-parent-permissions
Google Patch Parent Permissions
idempotent
google-create-parent-permissions-batchdelete
Google Create Parent Permissions:batchdelete
google-create-parent-permissions-batchupdate
Google Create Parent Permissions:batchupdate
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Google Drive Labels API — Labels
description: 'Google Drive Labels API — Labels. 14 operations. Lead operation: Google Retrieve Labels. Self-contained Naftiko
capability covering one Google business surface.'
tags:
- Google
- Labels
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GOOGLE_API_KEY: GOOGLE_API_KEY
capability:
consumes:
- type: http
namespace: drive-labels-labels
baseUri: https://drivelabels.googleapis.com
description: Google Drive Labels API — Labels business capability. Self-contained, no shared references.
resources:
- name: v2-labels
path: /v2/labels
operations:
- name: googledrivelabelslabelslist
method: GET
description: Google Retrieve Labels
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: customer
in: query
type: string
description: 'The customer to scope this list request to. For example: "customers/abcd1234". If unset, will return
all labels within the current customer.'
- name: languageCode
in: query
type: string
description: The BCP-47 language code to use for evaluating localized field labels. When not specified, values in
the default configured language are used.
- name: minimumRole
in: query
type: string
description: Specifies the level of access the user must have on the returned Labels. The minimum role a user must
have on a label. Defaults to `READER`.
- name: pageSize
in: query
type: integer
description: 'Maximum number of labels to return per page. Default: 50. Max: 200.'
- name: pageToken
in: query
type: string
description: The token of the page to return.
- name: publishedOnly
in: query
type: boolean
description: Whether to include only published labels in the results. * When `true`, only the current published
label revisions are returned. Disabled labels are included. R
- name: useAdminAccess
in: query
type: boolean
description: Set to `true` in order to use the user's admin credentials. This will return all Labels within the
customer.
- name: view
in: query
type: string
description: When specified, only certain fields belonging to the indicated view are returned.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: googledrivelabelslabelscreate
method: POST
description: Google Create Labels
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: languageCode
in: query
type: string
description: The BCP-47 language code to use for evaluating localized Field labels in response. When not specified,
values in the default configured language will be used.
- name: useAdminAccess
in: query
type: boolean
description: Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin
before allowing access.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-name
path: /v2/{name}
operations:
- name: googledrivelabelslabelsrevisionspermissionsdelete
method: DELETE
description: Google Delete Name
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. Label Permission resource name.
required: true
- name: useAdminAccess
in: query
type: boolean
description: 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.
- name: writeControl.requiredRevisionId
in: query
type: string
description: The revision_id of the label that the write request will be applied to. If this is not the latest revision
of the label, the request will not be processed and w
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: v2-name}:delta
path: /v2/{name}:delta
operations:
- name: googledrivelabelslabelsdelta
method: POST
description: Google Create Name:delta
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. The resource name of the Label to update.
required: true
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-name}:disable
path: /v2/{name}:disable
operations:
- name: googledrivelabelslabelsdisable
method: POST
description: Google Create Name:disable
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. Label resource name.
required: true
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-name}:enable
path: /v2/{name}:enable
operations:
- name: googledrivelabelslabelsenable
method: POST
description: Google Create Name:enable
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. Label resource name.
required: true
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-name}:publish
path: /v2/{name}:publish
operations:
- name: googledrivelabelslabelspublish
method: POST
description: Google Create Name:publish
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. Label resource name.
required: true
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-name}:updateLabelCopyMode
path: /v2/{name}:updateLabelCopyMode
operations:
- name: googledrivelabelslabelsupdatelabelcopymode
method: POST
description: Google Create Name:updatelabelcopymode
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: name
in: path
type: string
description: Required. The resource name of the Label to update.
required: true
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-parent-locks
path: /v2/{parent}/locks
operations:
- name: googledrivelabelslabelsrevisionslockslist
method: GET
description: Google Retrieve Parent Locks
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: parent
in: path
type: string
description: 'Required. Label on which Locks are applied. Format: labels/{label}'
required: true
- name: pageSize
in: query
type: integer
description: 'Maximum number of Locks to return per page. Default: 100. Max: 200.'
- name: pageToken
in: query
type: string
description: The token of the page to return.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: v2-parent-permissions
path: /v2/{parent}/permissions
operations:
- name: googledrivelabelslabelsrevisionspermissionslist
method: GET
description: Google Retrieve Parent Permissions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: parent
in: path
type: string
description: 'Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}'
required: true
- name: pageSize
in: query
type: integer
description: 'Maximum number of permissions to return per page. Default: 50. Max: 200.'
- name: pageToken
in: query
type: string
description: The token of the page to return.
- name: useAdminAccess
in: query
type: boolean
description: 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.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: googledrivelabelslabelsrevisionspermissionscreate
method: POST
description: Google Create Parent Permissions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: parent
in: path
type: string
description: 'Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}'
required: true
- name: useAdminAccess
in: query
type: boolean
description: 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.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: googledrivelabelslabelsrevisionsupdatepermissions
method: PATCH
description: Google Patch Parent Permissions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: parent
in: path
type: string
description: Required. The parent Label resource name.
required: true
- name: useAdminAccess
in: query
type: boolean
description: 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.
- name: $.xgafv
in: query
type: string
description: V1 error format.
- name: access_token
in: query
type: string
description: OAuth access token.
- name: alt
in: query
type: string
description: Data format for response.
- name: callback
in: query
type: string
description: JSONP
- name: fields
in: query
type: string
description: Selector specifying which fields to include in a partial response.
- name: key
in: query
type: string
description: API key. Your API key identifies your project and provides you with API access, quota, and reports.
Required unless you provide an OAuth 2.0 token.
- name: oauth_token
in: query
type: string
description: OAuth 2.0 token for the current user.
- name: prettyPrint
in: query
type: boolean
description: Returns response with indentations and line breaks.
- name: quotaUser
in: query
type: string
description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
to a user, but should not exceed 40 characters.
- name: upload_protocol
in: query
type: string
description: Upload protocol for media (e.g. "raw", "multipart").
- name: uploadType
in: query
type: string
description: Legacy upload protocol for media (e.g. "media", "multipart").
- name: Authorization
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v2-parent-permissions:batchDelete
path: /v2/{parent}/permissions:batchDelete
operations:
- name: googledrivelabelslabelsrevisionspermissionsbatchdelete
method: POST
description: Google Create Parent Permissions:batchdelete
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
# --- truncated at 32 KB (61 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/google/refs/heads/main/capabilities/drive-labels-labels.yaml