Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted.
Once disabled, a label may be deleted with labels.delete.
HTTP request
POST https://drivelabels.googleapis.com/v2beta/{name=labels/*}:disable
The fields that should be updated. At least one field must be specified. The root disabledPolicy is implied and should not be specified. A single * can be used as short-hand for updating every field.
useAdminAccess
boolean
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["Disabling a published Label creates a new disabled published revision based on the current published revision, or a new disabled draft revision if a draft exists, deleting older drafts."],["Use the `POST https://drivelabels.googleapis.com/v2beta/{name=labels/*}:disable` endpoint to disable a published Label using the Label resource name as a path parameter."],["The request body allows for specifying fields to update, using admin credentials, controlling write requests, defining the disabled policy, and setting the language code for localized field labels."],["A successful response returns the Label object."],["Authorization requires either the `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels` OAuth scope."]]],["To disable a Label, a `POST` request is sent to `https://drivelabels.googleapis.com/v2beta/{name=labels/*}:disable`. The request body must include data for updating fields like `updateMask`, `useAdminAccess`, `writeControl`, `disabledPolicy`, and `languageCode`. Admin access may be required. The response, if successful, will return an instance of the updated Label. This action requires one of two authorization scopes. A disabled label can then be deleted using `labels.delete`.\n"]]