Skip to content

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

FieldTypePresenceDescription and constraints
$objectRootA modification to a label’s field.
fieldIdstringOptionalThe ID of the field to be modified.
kindstringOptionalThis is always `“drive#labelFieldModification”`.
setDateValuesarrayOptionalReplaces 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[]stringEach itemFormat: date
setIntegerValuesarrayOptionalReplaces the value of an `integer` field with these new values.
setIntegerValues[]stringEach itemFormat: int64
setSelectionValuesarrayOptionalReplaces a `selection` field with these new values.
setSelectionValues[]stringEach item
setTextValuesarrayOptionalSets the value of a `text` field.
setTextValues[]stringEach item
setUserValuesarrayOptionalReplaces a `user` field with these new values. The values must be a valid email addresses.
setUserValues[]stringEach item
unsetValuesbooleanOptionalUnsets the values for this field.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.