Google: Lists the labels on a file For more information, see List labels on a file (https: developers google com workspace drive api guides list-labels) — response body — labels item fields value
Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).: response body, field labels / item / fields / value. Complete fields and constraints for contract 2026-10-27.
API reference · Contract 2026-10-27
SDK schema: Lists the labels on a file For more information, see List labels on a file (https: developers google com workspace drive api guides list-labels) — response body — labels item fields value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Representation of field, which is a typed key-value pair. |
dateString | array | Optional | Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD. |
dateString[] | string | Each item | Format: date |
id | string | Optional | The identifier of this label field. |
integer | array | Optional | Only present if `valueType` is `integer`. |
integer[] | string | Each item | Format: int64 |
kind | string | Optional | This is always drive#labelField. |
selection | array | Optional | Only present if `valueType` is `selection` |
selection[] | string | Each item | |
text | array | Optional | Only present if `valueType` is `text`. |
text[] | string | Each item | |
user | array | Optional | Only present if `valueType` is `user`. |
user[] | Model | Each item | Expand Gets information about the user, the user’s Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user |
valueType | string | Optional | The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user` |