Google: Modifies the set of labels applied to a file For more information, see Set a label field on a file (https: developers google com workspace drive api guides set-label) Returns a list of the labels that were added or modified — request body — body label Modifications item field Modifications item
Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). Returns a list of the labels that were added or modified.: request body, field body / labelModifications / item / fieldModifications / item. Complete fields and constraints for contract 2026-10-27.
API reference · Contract 2026-10-27
SDK schema: Modifies the set of labels applied to a file For more information, see Set a label field on a file (https: developers google com workspace drive api guides set-label) Returns a list of the labels that were added or modified — request body — body label Modifications item field Modifications item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A modification to a label’s field. |
fieldId | string | Optional | The ID of the field to be modified. |
kind | string | Optional | This is always `“drive#labelFieldModification”`. |
setDateValues | array | Optional | Replaces the value of a dateString Field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD. |
setDateValues[] | string | Each item | Format: date |
setIntegerValues | array | Optional | Replaces the value of an `integer` field with these new values. |
setIntegerValues[] | string | Each item | Format: int64 |
setSelectionValues | array | Optional | Replaces a `selection` field with these new values. |
setSelectionValues[] | string | Each item | |
setTextValues | array | Optional | Sets the value of a `text` field. |
setTextValues[] | string | Each item | |
setUserValues | array | Optional | Replaces a `user` field with these new values. The values must be a valid email addresses. |
setUserValues[] | string | Each item | |
unsetValues | boolean | Optional | Unsets the values for this field. |