v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13178889.9 KB
labels

Updates a label's CopyMode. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately.

post/v2/{+name}:updateLabelCopyMode

Path parameters

namestring required

Required. The resource name of the label to update.

Request body

view'LABEL_VIEW_BASIC' | 'LABEL_VIEW_FULL'

When specified, only certain fields belonging to the indicated view will be returned.

copyMode'COPY_MODE_UNSPECIFIED' | 'DO_NOT_COPY' | 'ALWAYS_COPY' | 'COPY_APPLIABLE'

Required. Indicates how the applied label and field values should be copied when a Drive item is copied.

languageCodestring

The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.

useAdminAccessboolean

Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.

Response

Successful response