Google Drive · Schema

GoogleAppsDriveLabelsV2Label

A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.

Cloud StorageCollaborationDocument ManagementDrivesFileGoogleStorage

Properties

Name Type Description
properties object Required. The basic properties of the label.
id string Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`.
creator object Output only. The user who created this label.
revisionCreateTime string Output only. The time this label revision was created.
disableTime string Output only. The time this label was disabled. This value has no meaning when the label isn't disabled.
appliedLabelPolicy object Output only. Behavior of this label when it's applied to Drive items.
customer string Output only. The customer this label belongs to. For example: `customers/123abc789`.
lockStatus object Output only. The `LockStatus` of this label.
name string Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below.
schemaCapabilities object Output only. The capabilities the user has on this label.
lifecycle object Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes.
revisionCreator object Output only. The user who created this label revision.
learnMoreUri string Custom URL to present to users to allow them to learn more about this label and how it should be used.
publisher object Output only. The user who published this label. This value has no meaning when the label isn't published.>>
publishTime string Output only. The time this label was published. This value has no meaning when the label isn't published.
appliedCapabilities object Output only. The capabilities related to this label on applied metadata.
displayHints object Output only. UI display hints for rendering the label.
revisionId string Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. M
labelType string Required. The type of label.
fields array List of fields in descending priority order.
disabler object Output only. The user who disabled this label. This value has no meaning when the label isn't disabled.
createTime string Output only. The time this label was created.
enabledAppSettings object Optional. The `EnabledAppSettings` for this Label.
View JSON Schema on GitHub

JSON Schema

google-drive-google-apps-drive-labels-v2-label-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-drive/json-schema/google-drive-google-apps-drive-labels-v2-label-schema.json",
  "title": "GoogleAppsDriveLabelsV2Label",
  "description": "A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-drive-drivelabels-labels-api-openapi.yml#/components/schemas/GoogleAppsDriveLabelsV2Label",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelProperties",
      "description": "Required. The basic properties of the label."
    },
    "id": {
      "description": "Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`.",
      "readOnly": true,
      "type": "string"
    },
    "creator": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
      "description": "Output only. The user who created this label."
    },
    "revisionCreateTime": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The time this label revision was created.",
      "format": "google-datetime"
    },
    "disableTime": {
      "format": "google-datetime",
      "type": "string",
      "description": "Output only. The time this label was disabled. This value has no meaning when the label isn't disabled.",
      "readOnly": true
    },
    "appliedLabelPolicy": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy",
      "description": "Output only. Behavior of this label when it's applied to Drive items."
    },
    "customer": {
      "description": "Output only. The customer this label belongs to. For example: `customers/123abc789`.",
      "type": "string",
      "readOnly": true
    },
    "lockStatus": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LockStatus",
      "description": "Output only. The `LockStatus` of this label."
    },
    "name": {
      "type": "string",
      "description": "Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below.",
      "readOnly": true
    },
    "schemaCapabilities": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelSchemaCapabilities",
      "description": "Output only. The capabilities the user has on this label."
    },
    "lifecycle": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2Lifecycle",
      "description": "Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes."
    },
    "revisionCreator": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
      "description": "Output only. The user who created this label revision."
    },
    "learnMoreUri": {
      "description": "Custom URL to present to users to allow them to learn more about this label and how it should be used.",
      "type": "string"
    },
    "publisher": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
      "description": "Output only. The user who published this label. This value has no meaning when the label isn't published.>>"
    },
    "publishTime": {
      "format": "google-datetime",
      "type": "string",
      "description": "Output only. The time this label was published. This value has no meaning when the label isn't published.",
      "readOnly": true
    },
    "appliedCapabilities": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelAppliedCapabilities",
      "description": "Output only. The capabilities related to this label on applied metadata."
    },
    "displayHints": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelDisplayHints",
      "description": "Output only. UI display hints for rendering the label."
    },
    "revisionId": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+`."
    },
    "labelType": {
      "enum": [
        "LABEL_TYPE_UNSPECIFIED",
        "SHARED",
        "ADMIN",
        "GOOGLE_APP"
      ],
      "description": "Required. The type of label.",
      "type": "string"
    },
    "fields": {
      "items": {
        "$ref": "#/$defs/GoogleAppsDriveLabelsV2Field"
      },
      "type": "array",
      "description": "List of fields in descending priority order."
    },
    "disabler": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
      "description": "Output only. The user who disabled this label. This value has no meaning when the label isn't disabled."
    },
    "createTime": {
      "type": "string",
      "description": "Output only. The time this label was created.",
      "format": "google-datetime",
      "readOnly": true
    },
    "enabledAppSettings": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelEnabledAppSettings",
      "description": "Optional. The `EnabledAppSettings` for this Label."
    }
  },
  "$defs": {
    "GoogleAppsDriveLabelsV2BadgeColors": {
      "properties": {
        "foregroundColor": {
          "$ref": "#/$defs/GoogleTypeColor",
          "description": "Output only. Badge foreground that pairs with the background."
        },
        "backgroundColor": {
          "$ref": "#/$defs/GoogleTypeColor",
          "description": "Output only. Badge background that pairs with the foreground."
        },
        "soloColor": {
          "$ref": "#/$defs/GoogleTypeColor",
          "description": "Output only. Color that can be used for text without a background."
        }
      },
      "type": "object",
      "description": "The color derived from BadgeConfig and changed to the closest recommended supported color."
    },
    "GoogleAppsDriveLabelsV2BadgeConfig": {
      "description": "Badge status of the label.",
      "type": "object",
      "properties": {
        "color": {
          "$ref": "#/$defs/GoogleTypeColor",
          "description": "The color of the badge. When not specified, no badge is rendered. The background, foreground, and solo (light and dark mode) colors set here are changed in the Drive UI into the closest recommended supported color."
        },
        "priorityOverride": {
          "type": "string",
          "description": "Override the default global priority of this badge. When set to 0, the default priority heuristic is used.",
          "format": "int64"
        }
      }
    },
    "GoogleAppsDriveLabelsV2Field": {
      "properties": {
        "lifecycle": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2Lifecycle",
          "description": "Output only. The lifecycle of this field."
        },
        "publisher": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who published this field. This value has no meaning when the field is not published."
        },
        "schemaCapabilities": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSchemaCapabilities",
          "description": "Output only. The capabilities this user has when editing this field."
        },
        "selectionOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptions",
          "description": "Selection field options."
        },
        "createTime": {
          "description": "Output only. The time this field was created.",
          "readOnly": true,
          "format": "google-datetime",
          "type": "string"
        },
        "queryKey": {
          "description": "Output only. The key to use when constructing Drive search queries to find files based on values defined for this field on files. For example, \"`{query_key}` > 2001-01-01\".",
          "type": "string",
          "readOnly": true
        },
        "disabler": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who disabled this field. This value has no meaning when the field is not disabled."
        },
        "integerOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldIntegerOptions",
          "description": "Integer field options."
        },
        "properties": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldProperties",
          "description": "The basic properties of the field."
        },
        "id": {
          "description": "Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.",
          "type": "string",
          "readOnly": true
        },
        "dateOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldDateOptions",
          "description": "Date field options."
        },
        "appliedCapabilities": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldAppliedCapabilities",
          "description": "Output only. The capabilities this user has on this field and its value when the label is applied on Drive items."
        },
        "textOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldTextOptions",
          "description": "Text field options."
        },
        "creator": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who created this field."
        },
        "displayHints": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldDisplayHints",
          "description": "Output only. UI display hints for rendering a field."
        },
        "lockStatus": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2LockStatus",
          "description": "Output only. The `LockStatus` of this field."
        },
        "disableTime": {
          "type": "string",
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The time this field was disabled. This value has no meaning when the field is not disabled."
        },
        "updater": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who modified this field."
        },
        "updateTime": {
          "readOnly": true,
          "description": "Output only. The time this field was updated.",
          "type": "string",
          "format": "google-datetime"
        },
        "userOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldUserOptions",
          "description": "User field options."
        }
      },
      "type": "object",
      "description": "Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item."
    },
    "GoogleAppsDriveLabelsV2FieldAppliedCapabilities": {
      "description": "The capabilities related to this field on applied metadata.",
      "properties": {
        "canWrite": {
          "description": "Whether the user can set this field on Drive items.",
          "type": "boolean"
        },
        "canRead": {
          "description": "Whether the user can read related applied metadata on items.",
          "type": "boolean"
        },
        "canSearch": {
          "type": "boolean",
          "description": "Whether the user can search for Drive items referencing this field."
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldDateOptions": {
      "type": "object",
      "properties": {
        "minValue": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "Output only. Minimum valid value (year, month, day)."
        },
        "dateFormatType": {
          "type": "string",
          "enum": [
            "DATE_FORMAT_UNSPECIFIED",
            "LONG_DATE",
            "SHORT_DATE"
          ],
          "description": "Localized date formatting option. Field values are rendered in this format according to their locale."
        },
        "maxValue": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "Output only. Maximum valid value (year, month, day)."
        },
        "dateFormat": {
          "type": "string",
          "description": "Output only. ICU date format.",
          "readOnly": true
        }
      },
      "description": "Options for the date field type."
    },
    "GoogleAppsDriveLabelsV2FieldDisplayHints": {
      "type": "object",
      "properties": {
        "hiddenInSearch": {
          "description": "This field should be hidden in the search menu when searching for Drive items.",
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean",
          "description": "Whether the field should be shown in the UI as disabled."
        },
        "required": {
          "description": "Whether the field should be shown as required in the UI.",
          "type": "boolean"
        },
        "shownInApply": {
          "description": "This field should be shown in the apply menu when applying values to a Drive item.",
          "type": "boolean"
        }
      },
      "description": "UI display hints for rendering a field."
    },
    "GoogleAppsDriveLabelsV2FieldIntegerOptions": {
      "type": "object",
      "description": "Options for the Integer field type.",
      "properties": {
        "minValue": {
          "description": "Output only. The minimum valid value for the integer field.",
          "type": "string",
          "format": "int64",
          "readOnly": true
        },
        "maxValue": {
          "type": "string",
          "description": "Output only. The maximum valid value for the integer field.",
          "format": "int64",
          "readOnly": true
        }
      }
    },
    "GoogleAppsDriveLabelsV2FieldListOptions": {
      "description": "Options for a multi-valued variant of an associated field type.",
      "properties": {
        "maxEntries": {
          "description": "Maximum number of entries permitted.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldProperties": {
      "type": "object",
      "properties": {
        "required": {
          "description": "Whether the field should be marked as required.",
          "type": "boolean"
        },
        "insertBeforeField": {
          "type": "string",
          "description": "Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list."
        },
        "displayName": {
          "type": "string",
          "description": "Required. The display text to show in the UI identifying this field."
        }
      },
      "description": "The basic properties of the field."
    },
    "GoogleAppsDriveLabelsV2FieldSchemaCapabilities": {
      "description": "The capabilities related to this field when editing the field.",
      "type": "object",
      "properties": {
        "canUpdate": {
          "type": "boolean",
          "description": "Whether the user can change this field."
        },
        "canEnable": {
          "description": "Whether the user can enable this field. The user must have permission and this field must be disabled.",
          "type": "boolean"
        },
        "canDelete": {
          "description": "Whether the user can delete this field. The user must have permission and the field must be deprecated.",
          "type": "boolean"
        },
        "canDisable": {
          "type": "boolean",
          "description": "Whether the user can disable this field. The user must have permission and this field must not already be disabled."
        }
      }
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptions": {
      "description": "Options for the selection field type.",
      "properties": {
        "listOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldListOptions",
          "description": "When specified, indicates this field supports a list of values. Once the field is published, this cannot be changed."
        },
        "choices": {
          "items": {
            "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice"
          },
          "description": "The options available for this selection field. The list order is consistent, and modified with `insert_before_choice`.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice": {
      "properties": {
        "lifecycle": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2Lifecycle",
          "description": "Output only. Lifecycle of the choice."
        },
        "publisher": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who published this choice. This value has no meaning when the choice is not published."
        },
        "id": {
          "type": "string",
          "description": "The unique value of the choice. This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`."
        },
        "disableTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled."
        },
        "createTime": {
          "readOnly": true,
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The time this choice was created."
        },
        "appliedCapabilities": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities",
          "description": "Output only. The capabilities related to this choice on applied metadata."
        },
        "publishTime": {
          "readOnly": true,
          "description": "Output only. The time this choice was published. This value has no meaning when the choice is not published.",
          "type": "string",
          "format": "google-datetime"
        },
        "properties": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties",
          "description": "Basic properties of the choice."
        },
        "displayHints": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints",
          "description": "Output only. UI display hints for rendering a choice."
        },
        "lockStatus": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2LockStatus",
          "description": "Output only. The `LockStatus` of this choice."
        },
        "updater": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who updated this choice last."
        },
        "disabler": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who disabled this choice. This value has no meaning when the option is not disabled."
        },
        "schemaCapabilities": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities",
          "description": "Output only. The capabilities related to this option when editing the option."
        },
        "creator": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2UserInfo",
          "description": "Output only. The user who created this choice."
        },
        "updateTime": {
          "format": "google-datetime",
          "description": "Output only. The time this choice was updated last.",
          "type": "string",
          "readOnly": true
        }
      },
      "description": "Selection field choice.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities": {
      "type": "object",
      "description": "The capabilities related to this choice on applied metadata.",
      "properties": {
        "canSelect": {
          "type": "boolean",
          "description": "Whether the user can select this choice on an item."
        },
        "canRead": {
          "description": "Whether the user can read related applied metadata on items.",
          "type": "boolean"
        },
        "canSearch": {
          "description": "Whether the user can use this choice in search queries.",
          "type": "boolean"
        }
      }
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints": {
      "description": "UI display hints for rendering an option.",
      "properties": {
        "hiddenInSearch": {
          "type": "boolean",
          "description": "This option should be hidden in the search menu when searching for Drive items."
        },
        "darkBadgeColors": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2BadgeColors",
          "description": "The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`."
        },
        "shownInApply": {
          "type": "boolean",
          "description": "This option should be shown in the apply menu when applying values to a Drive item."
        },
        "disabled": {
          "description": "Whether the option should be shown in the UI as disabled.",
          "type": "boolean"
        },
        "badgePriority": {
          "format": "int64",
          "type": "string",
          "description": "The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to `BadgeConfig.priority_override` or the default heuristic which prefers creation date of the label, and field and option priority."
        },
        "badgeColors": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2BadgeColors",
          "description": "The colors to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`."
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties": {
      "properties": {
        "displayName": {
          "description": "Required. The display text to show in the UI identifying this field.",
          "type": "string"
        },
        "description": {
          "type": "string",
          "description": "The description of this label."
        },
        "insertBeforeChoice": {
          "type": "string",
          "description": "Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list."
        },
        "badgeConfig": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2BadgeConfig",
          "description": "The badge configuration for this choice. When set, the label that owns this choice is considered a \"badged label\"."
        }
      },
      "description": "Basic properties of the choice.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities": {
      "description": "The capabilities related to this choice when editing the choice.",
      "properties": {
        "canEnable": {
          "type": "boolean",
          "description": "Whether the user can enable this choice."
        },
        "canUpdate": {
          "description": "Whether the user can update this choice.",
          "type": "boolean"
        },
        "canDisable": {
          "description": "Whether the user can disable this choice.",
          "type": "boolean"
        },
        "canDelete": {
          "type": "boolean",
          "description": "Whether the user can delete this choice."
        }
      },
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2FieldTextOptions": {
      "type": "object",
      "properties": {
        "minLength": {
          "readOnly": true,
          "type": "integer",
          "description": "Output only. The minimum valid length of values for the text field.",
          "format": "int32"
        },
        "maxLength": {
          "description": "Output only. The maximum valid length of values for the text field.",
          "format": "int32",
          "type": "integer",
          "readOnly": true
        }
      },
      "description": "Options for the Text field type."
    },
    "GoogleAppsDriveLabelsV2FieldUserOptions": {
      "properties": {
        "listOptions": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2FieldListOptions",
          "description": "When specified, indicates that this field supports a list of values. Once the field is published, this cannot be changed."
        }
      },
      "description": "Options for the user field type.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2LabelAppliedCapabilities": {
      "properties": {
        "canRemove": {
          "description": "Whether the user can remove this label from items.",
          "type": "boolean"
        },
        "canApply": {
          "description": "Whether the user can apply this label to items.",
          "type": "boolean"
        },
        "canRead": {
          "type": "boolean",
          "description": "Whether the user can read applied metadata related to this label."
        }
      },
      "type": "object",
      "description": "The capabilities a user has on this label's applied metadata."
    },
    "GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy": {
      "properties": {
        "copyMode": {
          "type": "string",
          "description": "Indicates how the applied label and field values should be copied when a Drive item is copied.",
          "enum": [
            "COPY_MODE_UNSPECIFIED",
            "DO_NOT_COPY",
            "ALWAYS_COPY",
            "COPY_APPLIABLE"
          ]
        }
      },
      "description": "Behavior of this label when it's applied to Drive items.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2LabelDisplayHints": {
      "type": "object",
      "description": "The UI display hints for rendering the label.",
      "properties": {
        "priority": {
          "format": "int64",
          "type": "string",
          "description": "The order to display labels in a list."
        },
        "shownInApply": {
          "description": "This label should be shown in the apply menu when applying values to a Drive item.",
          "type": "boolean"
        },
        "disabled": {
          "description": "Whether the label should be shown in the UI as disabled.",
          "type": "boolean"
        },
        "hiddenInSearch": {
          "type": "boolean",
          "description": "This label should be hidden in the search menu when searching for Drive items."
        }
      }
    },
    "GoogleAppsDriveLabelsV2LabelEnabledAppSettings": {
      "type": "object",
      "properties": {
        "enabledApps": {
          "items": {
            "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp"
          },
          "type": "array",
          "description": "Optional. The list of apps where the label can be used."
        }
      },
      "description": "Describes the Google Workspace apps in which the label can be used."
    },
    "GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp": {
      "type": "object",
      "description": "An app where the label can be used.",
      "properties": {
        "app": {
          "enum": [
            "APP_UNSPECIFIED",
            "DRIVE",
            "GMAIL"
          ],
          "description": "Optional. The name of the app.",
          "type": "string"
        }
      }
    },
    "GoogleAppsDriveLabelsV2LabelProperties": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the label."
        },
        "title": {
          "description": "Required. Title of the label.",
          "type": "string"
        }
      },
      "description": "Basic properties of the label."
    },
    "GoogleAppsDriveLabelsV2LabelSchemaCapabilities": {
      "type": "object",
      "description": "The capabilities related to this label when editing the label.",
      "properties": {
        "canEnable": {
          "description": "Whether the user can enable this label. The user must have permission and this label must be disabled.",
          "type": "boolean"
        },
        "canDisable": {
          "description": "Whether the user can disable this label. The user must have permission and this label must not already be disabled.",
          "type": "boolean"
        },
        "canUpdate": {
          "type": "boolean",
          "description": "Whether the user can change this label."
        },
        "canDelete": {
          "description": "Whether the user can delete this label. The user must have permission and the label must be disabled.",
          "type": "boolean"
        }
      }
    },
    "GoogleAppsDriveLabelsV2Lifecycle": {
      "properties": {
        "disabledPolicy": {
          "$ref": "#/$defs/GoogleAppsDriveLabelsV2LifecycleDisabledPolicy",
          "description": "The policy that governs how to show a disabled label, field, or selection choice."
        },
        "state": {
          "readOnly": true,
          "enum": [
            "STATE_UNSPECIFIED",
            "UNPUBLISHED_DRAFT",
            "PUBLISHED",
            "DISABLED",
            "DELETED"
          ],
          "description": "Output only. The state of the object associated with this lifecycle.",
          "type": "string"
        },
        "hasUnpublishedChanges": {
          "type": "boolean",
          "description": "Output only. Whether the object associated with this lifecycle has unpublished changes.",
          "readOnly": true
        }
      },
      "description": "The lifecycle state of an object, such as label, field, or choice. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * `Published`: Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes aren't permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * `Disabled`: When disabled, the configured `DisabledPolicy` takes effect.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2LifecycleDisabledPolicy": {
      "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": {
          "type": "boolean",
          "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."
        }
      },
      "description": "The policy that governs how to treat a disabled label, field, or selection choice in different contexts.",
      "type": "object"
    },
    "GoogleAppsDriveLabelsV2LockStatus": {
      "description": "Contains information about whether a label component should be considered locked.",
      "type": "object",
      "properties": {
        "locked": {
          "description": "Output only. Indicates whether this label component is the (direct) target of a label lock. A label component can be implicitly locked even if it's not the direct target of a label lock, in which case this field is set to false.",
          "readOnly": true,
          "type": "boolean"
        }
      }
    },
    "GoogleAppsDriveLabelsV2UserInfo": {
      "t

# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/google-drive/json-schema/google-drive-google-apps-drive-labels-v2-label-schema.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-drive-google-apps-drive-labels-v2-label"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.