{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google/json-schema/google-google-apps-drive-labels-v2-disable-label-request-schema.json",
  "title": "GoogleAppsDriveLabelsV2DisableLabelRequest",
  "description": "Request to deprecate a published Label.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-labels-api-openapi.yml#/components/schemas/GoogleAppsDriveLabelsV2DisableLabelRequest",
  "properties": {
    "disabledPolicy": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LifecycleDisabledPolicy",
      "description": "Disabled policy to use."
    },
    "languageCode": {
      "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
      "type": "string"
    },
    "updateMask": {
      "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
      "format": "google-fieldmask",
      "type": "string"
    },
    "useAdminAccess": {
      "description": "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.",
      "type": "boolean"
    },
    "writeControl": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2WriteControl",
      "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleAppsDriveLabelsV2LifecycleDisabledPolicy": {
      "description": "The policy that governs how to treat a disabled label, field, or selection choice in different contexts.",
      "properties": {
        "hideInSearch": {
          "description": "Whether to hide this disabled object in the search menu for Drive items. * When `false`, the object is generally shown in the UI as disabled but it appears in the search results when searching for Drive items. * When `true`, the object is generally hidden in the UI when searching for Drive items.",
          "type": "boolean"
        },
        "showInApply": {
          "description": "Whether to show this disabled object in the apply menu on Drive items. * When `true`, the object is generally shown in the UI as disabled and is unselectable. * When `false`, the object is generally hidden in the UI.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2WriteControl": {
      "description": "Provides control over how write requests are executed. When not specified, the last write wins.",
      "properties": {
        "requiredRevisionId": {
          "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}