younifyd
Menu

Drive.files.list Labels

Lists the labels on a file.

GET/files/{fileId}/listLabels

Use it in a workflow

  1. Add a step and choose the Google Drive connector.
  2. Pick the Drive.files.list Labels action (under files).
  3. Fill in the fields below, then reference the result from later steps as {{driveFilesListLabels.response.data}}.

Request

Path parameters

fileIdstringrequired

The ID of the file.

Query parameters

altstring

Data format for the response.

One ofjson

fieldsstring

Selector specifying which fields to include in a partial response.

keystring

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.

oauth_tokenstring

OAuth 2.0 token for the current user.

prettyPrintboolean

Returns response with indentations and line breaks.

quotaUserstring

An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

userIpstring

Deprecated. Please use quotaUser instead.

maxResultsinteger

The maximum number of labels to return per page. When not set, this defaults to 100.

pageTokenstring

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

Response

Returns 200 with an object. Read it in later steps with {{driveFilesListLabels.response.data.<field>}}.

kindstring

This is always drive#labelList

Default "drive#labelList"

labelsarray<object>

The list of labels.

fieldsobject

A map of the label's fields keyed by the field ID.

idstring

The ID of the label.

kindstring

This is always drive#label

Default "drive#label"

revisionIdstring

The revision ID of the label.

nextPageTokenstring

The page token for the next page of labels. This field will be absent if the end of the list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.

json
{
  "kind": "drive#labelList",
  "labels": [
    {
      "fields": {},
      "id": "string",
      "kind": "drive#label",
      "revisionId": "string"
    }
  ],
  "nextPageToken": "string"
}

Need more? See the Google Drive guide for connection setup and behaviour shared by every action.