> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve draft

> Retrieve the draft configuration of a specific lead scoring model using its score ID. This endpoint is useful for accessing the draft version of a score configuration before it is published or finalized.

export const ScopesList = ({scopes = [], description = "This API requires one of the following scopes:"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, data, commerce, crm, marketingLevel, salesLevel, serviceLevel, cmsLevel, dataLevel, commerceLevel, crmLevel}) => {
  const translations = {
    description: "Requires one of the following products or higher.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub",
      data: "Data Hub",
      commerce: "Revenue Hub",
      crm: "Smart CRM"
    },
    tiers: {
      free: "Free",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/MarketingHub.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/SalesHub.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/ServiceHub.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/ContentHub.svg",
    alt: "Content Hub"
  }, {
    name: data ? translations.productNames.data : '',
    level: translateTier(dataLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/DataHub.svg",
    alt: "Data Hub"
  }, {
    name: commerce ? translations.productNames.commerce : '',
    level: translateTier(commerceLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base/subscription_key_icons/commerce_icon.svg",
    alt: "Revenue Hub"
  }, {
    name: crm ? translations.productNames.crm : '',
    level: translateTier(crmLevel),
    icon: "https://www.hubspot.com/hubfs/Knowledge_Base_2023-24-25/developer/icons/SmartCRM.svg",
    alt: "Smart CRM"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'mh-lead-scoring-view'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2027-03-beta/marketing-lead-scoring-v2027-03-beta.json GET /marketing/lead-scoring/2027-03-beta/scores/{scoreId}/draft
openapi: 3.0.1
info:
  title: Marketing Lead Scoring
  description: Basepom for all HubSpot Projects
  version: 2027-03-beta
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
paths:
  /marketing/lead-scoring/2027-03-beta/scores/{scoreId}/draft:
    get:
      tags:
        - Advanced
      summary: Retrieve draft
      description: >-
        Retrieve the draft configuration of a specific lead scoring model using
        its score ID. This endpoint is useful for accessing the draft version of
        a score configuration before it is published or finalized.
      operationId: get-/marketing/lead-scoring/2027-03-beta/scores/{scoreId}/draft
      parameters:
        - name: scoreId
          in: path
          description: ''
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicScoreConfiguration'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - mh-lead-scoring-view
components:
  schemas:
    PublicScoreConfiguration:
      required:
        - allowedGroupTypes
        - groupConfigs
        - id
        - name
        - objectTypeId
        - scoreStatus
        - scoreType
      type: object
      properties:
        allowedGroupTypes:
          type: array
          items:
            type: string
            enum:
              - FIT
              - INTENT
        createdAt:
          type: string
          format: date-time
        filterConfiguration:
          $ref: '#/components/schemas/PublicFilterConfiguration'
        groupConfigs:
          type: array
          items:
            $ref: '#/components/schemas/PublicScoreGroupConfiguration'
        id:
          type: string
        maxScore:
          type: integer
          format: int32
        maxScorePerCategory:
          type: integer
          format: int32
        name:
          type: string
        objectTypeId:
          type: string
        outputConfiguration:
          $ref: '#/components/schemas/PublicOutputConfiguration'
        publishedAt:
          type: string
          format: date-time
        scoreStatus:
          type: string
        scoreType:
          type: string
        updatedAt:
          type: string
          format: date-time
    PublicFilterConfiguration:
      required:
        - listFilterType
        - segmentIds
      type: object
      properties:
        listFilterType:
          type: string
          enum:
            - EXCLUDES
            - INCLUDES
        segmentIds:
          type: array
          items:
            type: integer
            format: int32
    PublicScoreGroupConfiguration:
      required:
        - groupCategory
        - groupName
        - id
        - ruleConfigurations
      type: object
      properties:
        groupCategory:
          type: string
          enum:
            - FIT
            - INTENT
        groupDecay:
          $ref: '#/components/schemas/PublicGroupDecayConfiguration'
        groupName:
          type: string
        id:
          type: string
        maxValue:
          type: number
        minValue:
          type: number
        ruleConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/PublicScoreRuleConfiguration'
    PublicOutputConfiguration:
      required:
        - outputs
      type: object
      properties:
        outputs:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/PublicScoreOutputProperty'
              - $ref: '#/components/schemas/PublicThresholdOutputProperty'
              - $ref: '#/components/schemas/PublicMatrixOutputProperty'
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: further information about the error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents an error response returned by the API when an operation
        fails. This component is used in various endpoints to provide detailed
        information about the error encountered.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    PublicGroupDecayConfiguration:
      required:
        - decayIntervalDays
        - percentToDecayPerInterval
      type: object
      properties:
        decayIntervalDays:
          type: integer
          format: int32
        percentToDecayPerInterval:
          type: integer
          format: int32
    PublicScoreRuleConfiguration:
      required:
        - configuration
        - enabled
        - id
      type: object
      properties:
        configuration:
          $ref: '#/components/schemas/PublicRuleConfiguration'
        enabled:
          type: boolean
        id:
          type: string
        maxValue:
          type: number
        minValue:
          type: number
    PublicScoreOutputProperty:
      title: SCORE
      required:
        - categories
        - id
        - outputType
        - propertyLabel
        - propertyName
      type: object
      properties:
        categories:
          type: array
          items:
            type: string
            enum:
              - FIT
              - INTENT
        id:
          type: string
        outputType:
          type: string
          default: SCORE
          enum:
            - SCORE
        propertyDescription:
          type: string
        propertyGroup:
          type: string
        propertyLabel:
          type: string
        propertyName:
          type: string
      x-hubspot-sub-type-impl: true
    PublicThresholdOutputProperty:
      title: THRESHOLD
      required:
        - boundaries
        - categories
        - id
        - outputType
        - propertyLabel
        - propertyName
      type: object
      properties:
        boundaries:
          type: array
          items:
            $ref: '#/components/schemas/PublicThresholdTierBoundary'
        categories:
          type: array
          items:
            type: string
            enum:
              - FIT
              - INTENT
        id:
          type: string
        outputType:
          type: string
          default: THRESHOLD
          enum:
            - THRESHOLD
        propertyDescription:
          type: string
        propertyGroup:
          type: string
        propertyLabel:
          type: string
        propertyName:
          type: string
      x-hubspot-sub-type-impl: true
    PublicMatrixOutputProperty:
      title: MATRIX
      required:
        - boundaries
        - categories
        - id
        - outputType
        - propertyLabel
        - propertyName
      type: object
      properties:
        boundaries:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/PublicMatrixTierBoundary'
        categories:
          type: array
          items:
            type: string
            enum:
              - FIT
              - INTENT
        id:
          type: string
        outputType:
          type: string
          default: MATRIX
          enum:
            - MATRIX
        propertyDescription:
          type: string
        propertyGroup:
          type: string
        propertyLabel:
          type: string
        propertyName:
          type: string
      x-hubspot-sub-type-impl: true
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents detailed information about an error that occurred in the API.
        This component is used to provide additional context and specifics about
        errors, typically as part of an error response.
    PublicRuleConfiguration:
      required:
        - calculation
      type: object
      properties:
        calculation:
          oneOf:
            - $ref: '#/components/schemas/PublicConstantValueCalculator'
            - $ref: '#/components/schemas/PublicMatchCalculator'
            - $ref: '#/components/schemas/PublicMultiValueCalculator'
            - $ref: '#/components/schemas/PublicConditionalCalculator'
            - $ref: '#/components/schemas/PublicMultiUnifiedEventRollupCalculator'
            - $ref: '#/components/schemas/PublicAssociationObjectRollupCalculator'
            - $ref: >-
                #/components/schemas/PublicAssociationUnifiedEventRollupCalculator
            - $ref: '#/components/schemas/PublicSegmentMembershipCalculator'
    PublicThresholdTierBoundary:
      required:
        - label
        - threshold
      type: object
      properties:
        color:
          type: string
          enum:
            - BLUE
            - GRAY
            - GREEN
            - MAGENTA
            - ORANGE
            - PURPLE
            - RED
            - YELLOW
        label:
          type: string
        newLabel:
          type: string
        threshold:
          type: number
    PublicMatrixTierBoundary:
      required:
        - label
        - threshold
      type: object
      properties:
        label:
          type: string
        threshold:
          type: number
    PublicConstantValueCalculator:
      title: CONSTANT
      required:
        - type
        - value
      type: object
      properties:
        type:
          type: string
          default: CONSTANT
          enum:
            - CONSTANT
        value:
          type: number
      x-hubspot-sub-type-impl: true
    PublicMatchCalculator:
      title: MATCH
      required:
        - matchRules
        - property
        - type
      type: object
      properties:
        defaultValue:
          type: number
        matchRules:
          type: array
          items:
            $ref: '#/components/schemas/PublicMatchRule'
        property:
          type: string
        type:
          type: string
          default: MATCH
          enum:
            - MATCH
      x-hubspot-sub-type-impl: true
    PublicMultiValueCalculator:
      title: MULTI
      required:
        - calculators
        - type
      type: object
      properties:
        calculators:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/PublicConstantValueCalculator'
              - $ref: '#/components/schemas/PublicMatchCalculator'
              - $ref: '#/components/schemas/PublicMultiValueCalculator'
              - $ref: '#/components/schemas/PublicConditionalCalculator'
              - $ref: '#/components/schemas/PublicSegmentMembershipCalculator'
        type:
          type: string
          default: MULTI
          enum:
            - MULTI
      x-hubspot-sub-type-impl: true
    PublicConditionalCalculator:
      title: CONDITIONAL
      required:
        - type
        - value
        - whereCondition
      type: object
      properties:
        type:
          type: string
          default: CONDITIONAL
          enum:
            - CONDITIONAL
        value:
          type: number
        whereCondition:
          $ref: '#/components/schemas/PublicCompositeCondition'
      x-hubspot-sub-type-impl: true
    PublicMultiUnifiedEventRollupCalculator:
      title: MULTI_UE
      required:
        - eventCalculators
        - type
      type: object
      properties:
        eventCalculators:
          type: array
          items:
            $ref: '#/components/schemas/PublicMultiUnifiedEventCalculatorEntry'
        type:
          type: string
          default: MULTI_UE
          enum:
            - MULTI_UE
      x-hubspot-sub-type-impl: true
    PublicAssociationObjectRollupCalculator:
      title: ASSOCIATIONS
      required:
        - associatedObjectTypeId
        - associationSpec
        - inverseAssociationSpec
        - recordCalculation
        - rollupType
        - type
      type: object
      properties:
        associatedObjectTypeId:
          type: string
        associationFilters:
          $ref: '#/components/schemas/PublicAssociationFilter'
        associationSpec:
          $ref: '#/components/schemas/PublicAssociationSpec'
        inverseAssociationSpec:
          $ref: '#/components/schemas/PublicAssociationSpec'
        recordCalculation:
          oneOf:
            - $ref: '#/components/schemas/PublicConstantValueCalculator'
            - $ref: '#/components/schemas/PublicMatchCalculator'
            - $ref: '#/components/schemas/PublicMultiValueCalculator'
            - $ref: '#/components/schemas/PublicConditionalCalculator'
            - $ref: '#/components/schemas/PublicSegmentMembershipCalculator'
        rollupType:
          type: string
          enum:
            - AVG
            - MAX
            - MIN
            - SUM
        type:
          type: string
          default: ASSOCIATIONS
          enum:
            - ASSOCIATIONS
      x-hubspot-sub-type-impl: true
    PublicAssociationUnifiedEventRollupCalculator:
      title: ASSOCIATION_UE
      required:
        - associatedObjectTypeId
        - associationSpec
        - inverseAssociationSpec
        - recordCalculation
        - rollupType
        - type
      type: object
      properties:
        associatedObjectTypeId:
          type: string
        associationFilters:
          $ref: '#/components/schemas/PublicAssociationFilter'
        associationSpec:
          $ref: '#/components/schemas/PublicAssociationSpec'
        inverseAssociationSpec:
          $ref: '#/components/schemas/PublicAssociationSpec'
        recordCalculation:
          $ref: '#/components/schemas/PublicMultiUnifiedEventRollupCalculator'
        rollupType:
          type: string
          enum:
            - AVG
            - MAX
            - MIN
            - SUM
        type:
          type: string
          default: ASSOCIATION_UE
          enum:
            - ASSOCIATION_UE
      x-hubspot-sub-type-impl: true
    PublicSegmentMembershipCalculator:
      title: SEGMENT_MEMBERSHIP
      required:
        - segmentMembershipRules
        - type
      type: object
      properties:
        segmentMembershipRules:
          type: array
          items:
            $ref: '#/components/schemas/PublicSegmentMembershipRule'
        type:
          type: string
          default: SEGMENT_MEMBERSHIP
          enum:
            - SEGMENT_MEMBERSHIP
      x-hubspot-sub-type-impl: true
    PublicMatchRule:
      required:
        - operation
        - value
      type: object
      properties:
        operation:
          oneOf:
            - $ref: '#/components/schemas/PublicBoolPropertyOperation'
            - $ref: '#/components/schemas/PublicNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDateTimePropertyOperation'
            - $ref: '#/components/schemas/PublicRangedDatePropertyOperation'
            - $ref: '#/components/schemas/PublicComparativePropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicComparativeDatePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingDateRangePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingPropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicEnumerationPropertyOperation'
            - $ref: '#/components/schemas/PublicAllPropertyTypesOperation'
            - $ref: '#/components/schemas/PublicRangedNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicMultiStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDatePropertyOperation'
            - $ref: '#/components/schemas/PublicCalendarDatePropertyOperation'
            - $ref: '#/components/schemas/PublicTimePointOperation'
            - $ref: '#/components/schemas/PublicRangedTimeOperation'
            - $ref: '#/components/schemas/PublicComparativeStringPropertyOperation'
        value:
          type: number
    PublicCompositeCondition:
      title: COMPOSITE
      required:
        - conditions
        - operator
        - type
      type: object
      properties:
        conditions:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/PublicSingleCondition'
              - $ref: '#/components/schemas/PublicCompositeCondition'
        operator:
          type: string
          enum:
            - AND
        type:
          type: string
          default: COMPOSITE
          enum:
            - COMPOSITE
      x-hubspot-sub-type-impl: true
    PublicMultiUnifiedEventCalculatorEntry:
      required:
        - eventTypeId
        - recordCalculation
      type: object
      properties:
        eventFrequencyCriteria:
          oneOf:
            - $ref: '#/components/schemas/PublicEventFrequencyBetween'
        eventTimeframe:
          $ref: '#/components/schemas/PublicEventTimeframe'
        eventTypeId:
          type: string
        recordCalculation:
          oneOf:
            - $ref: '#/components/schemas/PublicConstantValueCalculator'
            - $ref: '#/components/schemas/PublicMatchCalculator'
            - $ref: '#/components/schemas/PublicMultiValueCalculator'
            - $ref: '#/components/schemas/PublicConditionalCalculator'
            - $ref: '#/components/schemas/PublicSegmentMembershipCalculator'
    PublicAssociationFilter:
      required:
        - propertyFilters
      type: object
      properties:
        propertyFilters:
          type: array
          items:
            $ref: '#/components/schemas/PublicPropertyFilter'
    PublicAssociationSpec:
      required:
        - associationCategory
        - associationTypeId
      type: object
      properties:
        associationCategory:
          type: string
        associationTypeId:
          type: integer
          format: int32
    PublicSegmentMembershipRule:
      required:
        - operation
        - segmentIds
        - value
      type: object
      properties:
        operation:
          type: string
          enum:
            - HAS_ALL_SEGMENT_MEMBERSHIP
            - HAS_AT_LEAST_ONE_SEGMENT_MEMBERSHIP
            - HAS_NO_SEGMENT_MEMBERSHIP
        segmentIds:
          type: array
          items:
            type: integer
            format: int32
        value:
          type: number
    PublicBoolPropertyOperation:
      title: BOOL
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - value
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: BOOL
          enum:
            - BOOL
        operator:
          type: string
        value:
          type: boolean
      x-hubspot-sub-type-impl: true
    PublicNumberPropertyOperation:
      title: NUMBER
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - value
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: NUMBER
          enum:
            - NUMBER
        operator:
          type: string
        value:
          type: number
      x-hubspot-sub-type-impl: true
    PublicStringPropertyOperation:
      title: STRING
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - value
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: STRING
          enum:
            - STRING
        operator:
          type: string
        value:
          type: string
      x-hubspot-sub-type-impl: true
    PublicDateTimePropertyOperation:
      title: DATETIME
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - requiresTimeZoneConversion
        - timestamp
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: DATETIME
          enum:
            - DATETIME
        operator:
          type: string
        requiresTimeZoneConversion:
          type: boolean
        timestamp:
          type: integer
          format: int64
      x-hubspot-sub-type-impl: true
    PublicRangedDatePropertyOperation:
      title: RANGED_DATE
      required:
        - includeObjectsWithNoValueSet
        - lowerBound
        - operationType
        - operator
        - requiresTimeZoneConversion
        - upperBound
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        lowerBound:
          type: integer
          format: int64
        operationType:
          type: string
          default: RANGED_DATE
          enum:
            - RANGED_DATE
        operator:
          type: string
        requiresTimeZoneConversion:
          type: boolean
        upperBound:
          type: integer
          format: int64
      x-hubspot-sub-type-impl: true
    PublicComparativePropertyUpdatedOperation:
      title: COMPARATIVE_PROPERTY_UPDATED
      required:
        - comparisonPropertyName
        - includeObjectsWithNoValueSet
        - operationType
        - operator
      type: object
      properties:
        comparisonPropertyName:
          type: string
        defaultComparisonValue:
          type: string
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: COMPARATIVE_PROPERTY_UPDATED
          enum:
            - COMPARATIVE_PROPERTY_UPDATED
        operator:
          type: string
      x-hubspot-sub-type-impl: true
    PublicComparativeDatePropertyOperation:
      title: COMPARATIVE_DATE
      required:
        - comparisonPropertyName
        - includeObjectsWithNoValueSet
        - operationType
        - operator
      type: object
      properties:
        comparisonPropertyName:
          type: string
        defaultComparisonValue:
          type: string
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: COMPARATIVE_DATE
          enum:
            - COMPARATIVE_DATE
        operator:
          type: string
      x-hubspot-sub-type-impl: true
    PublicRollingDateRangePropertyOperation:
      title: ROLLING_DATE_RANGE
      required:
        - includeObjectsWithNoValueSet
        - numberOfDays
        - operationType
        - operator
        - requiresTimeZoneConversion
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        numberOfDays:
          type: integer
          format: int32
        operationType:
          type: string
          default: ROLLING_DATE_RANGE
          enum:
            - ROLLING_DATE_RANGE
        operator:
          type: string
        requiresTimeZoneConversion:
          type: boolean
      x-hubspot-sub-type-impl: true
    PublicRollingPropertyUpdatedOperation:
      title: ROLLING_PROPERTY_UPDATED
      required:
        - includeObjectsWithNoValueSet
        - numberOfDays
        - operationType
        - operator
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        numberOfDays:
          type: integer
          format: int32
        operationType:
          type: string
          default: ROLLING_PROPERTY_UPDATED
          enum:
            - ROLLING_PROPERTY_UPDATED
        operator:
          type: string
      x-hubspot-sub-type-impl: true
    PublicEnumerationPropertyOperation:
      title: ENUMERATION
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - values
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: ENUMERATION
          enum:
            - ENUMERATION
        operator:
          type: string
        values:
          type: array
          items:
            type: string
      x-hubspot-sub-type-impl: true
    PublicAllPropertyTypesOperation:
      title: ALL_PROPERTY
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: ALL_PROPERTY
          enum:
            - ALL_PROPERTY
        operator:
          type: string
      x-hubspot-sub-type-impl: true
    PublicRangedNumberPropertyOperation:
      title: NUMBER_RANGED
      required:
        - includeObjectsWithNoValueSet
        - lowerBound
        - operationType
        - operator
        - upperBound
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        lowerBound:
          type: integer
          format: int64
        operationType:
          type: string
          default: NUMBER_RANGED
          enum:
            - NUMBER_RANGED
        operator:
          type: string
        upperBound:
          type: integer
          format: int64
      x-hubspot-sub-type-impl: true
    PublicMultiStringPropertyOperation:
      title: MULTISTRING
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - values
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: MULTISTRING
          enum:
            - MULTISTRING
        operator:
          type: string
        values:
          type: array
          items:
            type: string
      x-hubspot-sub-type-impl: true
    PublicDatePropertyOperation:
      title: DATE
      required:
        - day
        - includeObjectsWithNoValueSet
        - month
        - operationType
        - operator
        - year
      type: object
      properties:
        day:
          type: integer
          format: int32
        includeObjectsWithNoValueSet:
          type: boolean
        month:
          type: string
        operationType:
          type: string
          default: DATE
          enum:
            - DATE
        operator:
          type: string
        year:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicCalendarDatePropertyOperation:
      title: CALENDAR_DATE
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - timeUnit
      type: object
      properties:
        fiscalYearStart:
          type: string
          enum:
            - APRIL
            - AUGUST
            - DECEMBER
            - FEBRUARY
            - JANUARY
            - JULY
            - JUNE
            - MARCH
            - MAY
            - NOVEMBER
            - OCTOBER
            - SEPTEMBER
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: CALENDAR_DATE
          enum:
            - CALENDAR_DATE
        operator:
          type: string
        timeUnit:
          type: string
        timeUnitCount:
          type: integer
          format: int32
        useFiscalYear:
          type: boolean
      x-hubspot-sub-type-impl: true
    PublicTimePointOperation:
      title: TIME_POINT
      required:
        - includeObjectsWithNoValueSet
        - operationType
        - operator
        - timePoint
        - type
      type: object
      properties:
        endpointBehavior:
          type: string
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: TIME_POINT
          enum:
            - TIME_POINT
        operator:
          type: string
        propertyParser:
          type: string
        timePoint:
          oneOf:
            - $ref: '#/components/schemas/PublicDatePoint'
            - $ref: '#/components/schemas/PublicIndexedTimePoint'
            - $ref: '#/components/schemas/PublicPropertyReferencedTime'
        type:
          type: string
      x-hubspot-sub-type-impl: true
    PublicRangedTimeOperation:
      title: TIME_RANGED
      required:
        - includeObjectsWithNoValueSet
        - lowerBoundTimePoint
        - operationType
        - operator
        - type
        - upperBoundTimePoint
      type: object
      properties:
        includeObjectsWithNoValueSet:
          type: boolean
        lowerBoundEndpointBehavior:
          type: string
        lowerBoundTimePoint:
          oneOf:
            - $ref: '#/components/schemas/PublicDatePoint'
            - $ref: '#/components/schemas/PublicIndexedTimePoint'
            - $ref: '#/components/schemas/PublicPropertyReferencedTime'
        operationType:
          type: string
        operator:
          type: string
        propertyParser:
          type: string
        type:
          type: string
          default: TIME_RANGED
          enum:
            - TIME_RANGED
        upperBoundEndpointBehavior:
          type: string
        upperBoundTimePoint:
          oneOf:
            - $ref: '#/components/schemas/PublicDatePoint'
            - $ref: '#/components/schemas/PublicIndexedTimePoint'
            - $ref: '#/components/schemas/PublicPropertyReferencedTime'
      x-hubspot-sub-type-impl: true
    PublicComparativeStringPropertyOperation:
      title: COMPARATIVE_STRING
      required:
        - comparisonPropertyName
        - includeObjectsWithNoValueSet
        - operationType
        - operator
      type: object
      properties:
        comparisonPropertyName:
          type: string
        defaultComparisonValue:
          type: string
        includeObjectsWithNoValueSet:
          type: boolean
        operationType:
          type: string
          default: COMPARATIVE_STRING
          enum:
            - COMPARATIVE_STRING
        operator:
          type: string
      x-hubspot-sub-type-impl: true
    PublicSingleCondition:
      title: SINGLE
      required:
        - operation
        - property
        - type
      type: object
      properties:
        operation:
          oneOf:
            - $ref: '#/components/schemas/PublicBoolPropertyOperation'
            - $ref: '#/components/schemas/PublicNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDateTimePropertyOperation'
            - $ref: '#/components/schemas/PublicRangedDatePropertyOperation'
            - $ref: '#/components/schemas/PublicComparativePropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicComparativeDatePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingDateRangePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingPropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicEnumerationPropertyOperation'
            - $ref: '#/components/schemas/PublicAllPropertyTypesOperation'
            - $ref: '#/components/schemas/PublicRangedNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicMultiStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDatePropertyOperation'
            - $ref: '#/components/schemas/PublicCalendarDatePropertyOperation'
            - $ref: '#/components/schemas/PublicTimePointOperation'
            - $ref: '#/components/schemas/PublicRangedTimeOperation'
            - $ref: '#/components/schemas/PublicComparativeStringPropertyOperation'
        property:
          type: string
        type:
          type: string
          default: SINGLE
          enum:
            - SINGLE
      x-hubspot-sub-type-impl: true
    PublicEventFrequencyBetween:
      title: BETWEEN
      required:
        - ranges
        - type
      type: object
      properties:
        ranges:
          type: array
          items:
            $ref: '#/components/schemas/PublicFrequencyRange'
        type:
          type: string
          default: BETWEEN
          enum:
            - BETWEEN
      x-hubspot-sub-type-impl: true
    PublicEventTimeframe:
      required:
        - eventFilterOperation
      type: object
      properties:
        eventFilterOperation:
          oneOf:
            - $ref: '#/components/schemas/PublicBoolPropertyOperation'
            - $ref: '#/components/schemas/PublicNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDateTimePropertyOperation'
            - $ref: '#/components/schemas/PublicRangedDatePropertyOperation'
            - $ref: '#/components/schemas/PublicComparativePropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicComparativeDatePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingDateRangePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingPropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicEnumerationPropertyOperation'
            - $ref: '#/components/schemas/PublicAllPropertyTypesOperation'
            - $ref: '#/components/schemas/PublicRangedNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicMultiStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDatePropertyOperation'
            - $ref: '#/components/schemas/PublicCalendarDatePropertyOperation'
            - $ref: '#/components/schemas/PublicTimePointOperation'
            - $ref: '#/components/schemas/PublicRangedTimeOperation'
            - $ref: '#/components/schemas/PublicComparativeStringPropertyOperation'
    PublicPropertyFilter:
      title: PROPERTY
      required:
        - filterType
        - operation
        - property
      type: object
      properties:
        filterType:
          type: string
          default: PROPERTY
          enum:
            - PROPERTY
        operation:
          oneOf:
            - $ref: '#/components/schemas/PublicBoolPropertyOperation'
            - $ref: '#/components/schemas/PublicNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDateTimePropertyOperation'
            - $ref: '#/components/schemas/PublicRangedDatePropertyOperation'
            - $ref: '#/components/schemas/PublicComparativePropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicComparativeDatePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingDateRangePropertyOperation'
            - $ref: '#/components/schemas/PublicRollingPropertyUpdatedOperation'
            - $ref: '#/components/schemas/PublicEnumerationPropertyOperation'
            - $ref: '#/components/schemas/PublicAllPropertyTypesOperation'
            - $ref: '#/components/schemas/PublicRangedNumberPropertyOperation'
            - $ref: '#/components/schemas/PublicMultiStringPropertyOperation'
            - $ref: '#/components/schemas/PublicDatePropertyOperation'
            - $ref: '#/components/schemas/PublicCalendarDatePropertyOperation'
            - $ref: '#/components/schemas/PublicTimePointOperation'
            - $ref: '#/components/schemas/PublicRangedTimeOperation'
            - $ref: '#/components/schemas/PublicComparativeStringPropertyOperation'
        property:
          type: string
      x-hubspot-sub-type-impl: true
    PublicDatePoint:
      title: DATE
      required:
        - day
        - month
        - timeType
        - year
        - zoneId
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        month:
          type: integer
          format: int32
        second:
          type: integer
          format: int32
        timeType:
          type: string
          default: DATE
          enum:
            - DATE
        timezoneSource:
          type: string
        year:
          type: integer
          format: int32
        zoneId:
          type: string
      x-hubspot-sub-type-impl: true
    PublicIndexedTimePoint:
      title: INDEXED
      required:
        - indexReference
        - timeType
        - zoneId
      type: object
      properties:
        indexReference:
          oneOf:
            - $ref: '#/components/schemas/PublicNowReference'
            - $ref: '#/components/schemas/PublicTodayReference'
            - $ref: '#/components/schemas/PublicWeekReference'
            - $ref: '#/components/schemas/PublicFiscalQuarterReference'
            - $ref: '#/components/schemas/PublicFiscalYearReference'
            - $ref: '#/components/schemas/PublicYearReference'
            - $ref: '#/components/schemas/PublicQuarterReference'
            - $ref: '#/components/schemas/PublicMonthReference'
        offset:
          $ref: '#/components/schemas/PublicIndexOffset'
        timeType:
          type: string
          default: INDEXED
          enum:
            - INDEXED
        timezoneSource:
          type: string
        zoneId:
          type: string
      x-hubspot-sub-type-impl: true
    PublicPropertyReferencedTime:
      title: PROPERTY_REFERENCED
      required:
        - property
        - referenceType
        - timeType
        - zoneId
      type: object
      properties:
        property:
          type: string
        referenceType:
          type: string
        timeType:
          type: string
          default: PROPERTY_REFERENCED
          enum:
            - PROPERTY_REFERENCED
        timezoneSource:
          type: string
        zoneId:
          type: string
      x-hubspot-sub-type-impl: true
    PublicFrequencyRange:
      required:
        - from
        - type
        - value
      type: object
      properties:
        from:
          type: integer
          format: int32
        to:
          type: integer
          format: int32
        type:
          type: string
          enum:
            - AT_LEAST
            - BETWEEN
            - EXACTLY
        value:
          type: number
    PublicNowReference:
      title: NOW
      required:
        - referenceType
      type: object
      properties:
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        referenceType:
          type: string
          default: NOW
          enum:
            - NOW
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicTodayReference:
      title: TODAY
      required:
        - referenceType
      type: object
      properties:
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        referenceType:
          type: string
          default: TODAY
          enum:
            - TODAY
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicWeekReference:
      title: WEEK
      required:
        - dayOfWeek
        - referenceType
      type: object
      properties:
        dayOfWeek:
          type: string
          enum:
            - FRIDAY
            - MONDAY
            - SATURDAY
            - SUNDAY
            - THURSDAY
            - TUESDAY
            - WEDNESDAY
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        referenceType:
          type: string
          default: WEEK
          enum:
            - WEEK
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicFiscalQuarterReference:
      title: FISCAL_QUARTER
      required:
        - day
        - month
        - referenceType
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        month:
          type: integer
          format: int32
        referenceType:
          type: string
          default: FISCAL_QUARTER
          enum:
            - FISCAL_QUARTER
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicFiscalYearReference:
      title: FISCAL_YEAR
      required:
        - day
        - month
        - referenceType
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        month:
          type: integer
          format: int32
        referenceType:
          type: string
          default: FISCAL_YEAR
          enum:
            - FISCAL_YEAR
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicYearReference:
      title: YEAR
      required:
        - day
        - month
        - referenceType
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        month:
          type: integer
          format: int32
        referenceType:
          type: string
          default: YEAR
          enum:
            - YEAR
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicQuarterReference:
      title: QUARTER
      required:
        - day
        - month
        - referenceType
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        month:
          type: integer
          format: int32
        referenceType:
          type: string
          default: QUARTER
          enum:
            - QUARTER
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicMonthReference:
      title: MONTH
      required:
        - day
        - referenceType
      type: object
      properties:
        day:
          type: integer
          format: int32
        hour:
          type: integer
          format: int32
        millisecond:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        referenceType:
          type: string
          default: MONTH
          enum:
            - MONTH
        second:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicIndexOffset:
      type: object
      properties:
        days:
          type: integer
          format: int32
        hours:
          type: integer
          format: int32
        milliseconds:
          type: integer
          format: int32
        minutes:
          type: integer
          format: int32
        months:
          type: integer
          format: int32
        quarters:
          type: integer
          format: int32
        seconds:
          type: integer
          format: int32
        weeks:
          type: integer
          format: int32
        years:
          type: integer
          format: int32
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            mh-lead-scoring-edit: ''
            mh-lead-scoring-view: ''
            oauth-access: ''

````