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
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. 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 | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A modification to a label on a file. A `LabelModification` can be used to apply a label to a file, update an existing label on a file, or remove a label from a file. |
fieldModifications | array | Optional | The list of modifications to this label’s fields. |
fieldModifications[] | Model | Each item | Expand 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 |
kind | string | Optional | This is always `“drive#labelModification”`. |
labelId | string | Required within parent | The ID of the label to modify. |
removeLabel | boolean | Optional | If true, the label will be removed from the file. |