> ## 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.

---
id: 1da36204-9a75-45e2-99ca-b02aef268db1
---

# Create a new A/B test variation

> Create a new variation for an A/B test on a landing page. This endpoint is useful for testing different versions of a landing page to optimize performance and user engagement. The request body must include the necessary details for the A/B test variation.

> [accordion] Supported products

> [accordion] Required Scopes


## OpenAPI

````yaml specs/2027-03-beta/cms-pages-v2027-03-beta.json POST /cms/pages/2027-03-beta/landing-pages/ab-test/create-variation
openapi: 3.0.1
info:
  title: CMS Pages
  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
  - name: Batch
paths:
  /cms/pages/2027-03-beta/landing-pages/ab-test/create-variation:
    post:
      tags:
        - Advanced
      summary: Create Variation
      description: >-
        Create a new variation for an A/B test on a landing page. This endpoint
        is useful for testing different versions of a landing page to optimize
        performance and user engagement. The request body must include the
        necessary details for the A/B test variation.
      operationId: >-
        post-/cms/pages/2027-03-beta/landing-pages/ab-test/create-variation_/cms/pages/2027-03-beta/landing-pages/ab-test/create-variation
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AbTestCreateRequestVNext'
        required: true
      responses:
        '201':
          description: successful operation
          headers:
            Location:
              description: URL of the newly created resource
              style: simple
              explode: false
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - content
components:
  schemas:
    AbTestCreateRequestVNext:
      required:
        - contentId
        - variationName
      type: object
      properties:
        contentId:
          type: string
          description: >-
            The unique identifier of the content that the variation is based on.
            This is a string that links the variation to the original content.
        variationName:
          type: string
          description: >-
            The name assigned to the new variation. It is a string that
            identifies the variation within the A/B test.
    Page:
      required:
        - abStatus
        - abTestId
        - archivedAt
        - archivedInDashboard
        - attachedStylesheets
        - authorName
        - campaign
        - categoryId
        - contentGroupId
        - contentTypeCategory
        - created
        - createdById
        - currentState
        - currentlyPublished
        - domain
        - dynamicPageDataSourceId
        - dynamicPageDataSourceType
        - dynamicPageHubDbTableId
        - enableDomainStylesheets
        - enableLayoutStylesheets
        - featuredImage
        - featuredImageAltText
        - folderId
        - footerHtml
        - headHtml
        - htmlTitle
        - id
        - includeDefaultCustomCss
        - language
        - layoutSections
        - linkRelCanonicalUrl
        - mabExperimentId
        - metaDescription
        - name
        - pageExpiryDate
        - pageExpiryEnabled
        - pageExpiryRedirectId
        - pageExpiryRedirectUrl
        - pageRedirected
        - password
        - publicAccessRules
        - publicAccessRulesEnabled
        - publishDate
        - publishImmediately
        - slug
        - state
        - subcategory
        - templatePath
        - themeSettingsValues
        - translatedFromId
        - translations
        - updated
        - updatedById
        - url
        - useFeaturedImage
        - widgetContainers
        - widgets
      type: object
      properties:
        abStatus:
          type: string
          description: The status of the A/B test for the page.
          enum:
            - automated_loser_variant
            - automated_master
            - automated_variant
            - loser_variant
            - mab_master
            - mab_variant
            - master
            - variant
        abTestId:
          type: string
          description: The ID of the A/B test associated with the page.
        archivedAt:
          type: string
          description: The date and time when the page was archived, in ISO 8601 format.
          format: date-time
        archivedInDashboard:
          type: boolean
          description: A boolean indicating if the page is archived in the dashboard.
        attachedStylesheets:
          type: array
          description: A collection of stylesheets attached to the page.
          items:
            type: object
            additionalProperties:
              type: object
              properties: {}
        authorName:
          type: string
          description: The name of the author of the page.
        campaign:
          type: string
          description: The campaign associated with the page.
        categoryId:
          type: integer
          description: The ID of the category to which this page belongs.
          format: int32
        contentGroupId:
          type: string
          description: The ID of the content group to which this page belongs.
        contentTypeCategory:
          type: string
          description: The content type category of the page.
          enum:
            - '0'
            - '1'
            - '10'
            - '11'
            - '12'
            - '13'
            - '14'
            - '15'
            - '16'
            - '17'
            - '18'
            - '19'
            - '2'
            - '20'
            - '21'
            - '22'
            - '3'
            - '4'
            - '5'
            - '6'
            - '7'
            - '8'
            - '9'
        created:
          type: string
          description: The date and time when the page was created, in ISO 8601 format.
          format: date-time
        createdById:
          type: string
          description: The ID of the user who created the page.
        currentState:
          type: string
          description: >-
            The current state of the page, such as 'draft', 'published', or
            'archived'.
          enum:
            - AGENT_GENERATED
            - AUTOMATED
            - AUTOMATED_AB
            - AUTOMATED_AB_VARIANT
            - AUTOMATED_DRAFT
            - AUTOMATED_DRAFT_AB
            - AUTOMATED_DRAFT_ABVARIANT
            - AUTOMATED_FOR_FORM
            - AUTOMATED_FOR_FORM_BUFFER
            - AUTOMATED_FOR_FORM_DRAFT
            - AUTOMATED_FOR_FORM_LEGACY
            - AUTOMATED_LOSER_ABVARIANT
            - AUTOMATED_SENDING
            - BLOG_EMAIL_DRAFT
            - BLOG_EMAIL_PUBLISHED
            - DRAFT
            - DRAFT_AB
            - DRAFT_AB_VARIANT
            - ERROR
            - LOSER_AB_VARIANT
            - PAGE_STUB
            - PRE_PROCESSING
            - PROCESSING
            - PUBLISHED
            - PUBLISHED_AB
            - PUBLISHED_AB_VARIANT
            - PUBLISHED_OR_SCHEDULED
            - RSS_TO_EMAIL_DRAFT
            - RSS_TO_EMAIL_PUBLISHED
            - SCHEDULED
            - SCHEDULED_AB
            - SCHEDULED_OR_PUBLISHED
        currentlyPublished:
          type: boolean
          description: A boolean indicating if the page is currently published.
        domain:
          type: string
          description: The domain on which the page is hosted.
        dynamicPageDataSourceId:
          type: string
          description: The ID of the data source used for dynamic page content.
        dynamicPageDataSourceType:
          type: integer
          description: The type of data source used for dynamic page content.
          format: int32
        dynamicPageHubDbTableId:
          type: string
          description: The ID of the HubDB table used for dynamic page content.
        enableDomainStylesheets:
          type: boolean
          description: A boolean indicating if domain stylesheets should be enabled.
        enableLayoutStylesheets:
          type: boolean
          description: A boolean indicating if layout stylesheets should be enabled.
        featuredImage:
          type: string
          description: The URL of the featured image for the page.
        featuredImageAltText:
          type: string
          description: The alt text for the featured image of the page.
        folderId:
          type: string
          description: The ID of the folder containing the page.
        footerHtml:
          type: string
          description: >-
            Custom HTML content to be included in the footer section of the
            page.
        headHtml:
          type: string
          description: Custom HTML content to be included in the head section of the page.
        htmlTitle:
          type: string
          description: The HTML title of the page.
        id:
          type: string
          description: The unique identifier for the page.
        includeDefaultCustomCss:
          type: boolean
          description: A boolean indicating if default custom CSS should be included.
        language:
          type: string
          description: The language of the page content.
          enum:
            - aa
            - ab
            - ae
            - af
            - af-na
            - af-za
            - agq
            - agq-cm
            - ak
            - ak-gh
            - am
            - am-et
            - an
            - ann
            - ann-ng
            - ar
            - ar-001
            - ar-ae
            - ar-bh
            - ar-dj
            - ar-dz
            - ar-eg
            - ar-eh
            - ar-er
            - ar-il
            - ar-iq
            - ar-jo
            - ar-km
            - ar-kw
            - ar-lb
            - ar-ly
            - ar-ma
            - ar-mr
            - ar-om
            - ar-ps
            - ar-qa
            - ar-sa
            - ar-sd
            - ar-so
            - ar-ss
            - ar-sy
            - ar-td
            - ar-tn
            - ar-ye
            - as
            - as-in
            - asa
            - asa-tz
            - ast
            - ast-es
            - av
            - ay
            - az
            - az-az
            - ba
            - bal
            - bal-pk
            - bas
            - bas-cm
            - be
            - be-by
            - bem
            - bem-zm
            - bez
            - bez-tz
            - bg
            - bg-bg
            - bgc
            - bgc-in
            - bho
            - bho-in
            - bi
            - blo
            - blo-bj
            - bm
            - bm-ml
            - bn
            - bn-bd
            - bn-in
            - bo
            - bo-cn
            - bo-in
            - br
            - br-fr
            - brx
            - brx-in
            - bs
            - bs-ba
            - ca
            - ca-ad
            - ca-es
            - ca-fr
            - ca-it
            - ccp
            - ccp-bd
            - ccp-in
            - ce
            - ce-ru
            - ceb
            - ceb-ph
            - cgg
            - cgg-ug
            - ch
            - chr
            - chr-us
            - ckb
            - ckb-iq
            - ckb-ir
            - co
            - cr
            - cs
            - cs-cz
            - csw
            - csw-ca
            - cu
            - cu-ru
            - cv
            - cv-ru
            - cy
            - cy-gb
            - da
            - da-dk
            - da-gl
            - dav
            - dav-ke
            - de
            - de-at
            - de-be
            - de-ch
            - de-de
            - de-gr
            - de-it
            - de-li
            - de-lu
            - dje
            - dje-ne
            - doi
            - doi-in
            - dsb
            - dsb-de
            - dua
            - dua-cm
            - dv
            - dyo
            - dyo-sn
            - dz
            - dz-bt
            - ebu
            - ebu-ke
            - ee
            - ee-gh
            - ee-tg
            - el
            - el-cy
            - el-gr
            - en
            - en-001
            - en-150
            - en-ae
            - en-ag
            - en-ai
            - en-as
            - en-at
            - en-au
            - en-bb
            - en-be
            - en-bi
            - en-bm
            - en-bs
            - en-bw
            - en-bz
            - en-ca
            - en-cc
            - en-ch
            - en-ck
            - en-cm
            - en-cn
            - en-cx
            - en-cy
            - en-cz
            - en-de
            - en-dg
            - en-dk
            - en-dm
            - en-ee
            - en-eg
            - en-er
            - en-es
            - en-fi
            - en-fj
            - en-fk
            - en-fm
            - en-fr
            - en-gb
            - en-gd
            - en-gg
            - en-gh
            - en-gi
            - en-gm
            - en-gs
            - en-gu
            - en-gy
            - en-hk
            - en-hu
            - en-id
            - en-ie
            - en-il
            - en-im
            - en-in
            - en-io
            - en-it
            - en-je
            - en-jm
            - en-ke
            - en-ki
            - en-kn
            - en-ky
            - en-lc
            - en-lr
            - en-ls
            - en-lu
            - en-mg
            - en-mh
            - en-mo
            - en-mp
            - en-ms
            - en-mt
            - en-mu
            - en-mv
            - en-mw
            - en-mx
            - en-my
            - en-na
            - en-nf
            - en-ng
            - en-nl
            - en-no
            - en-nr
            - en-nu
            - en-nz
            - en-pg
            - en-ph
            - en-pk
            - en-pl
            - en-pn
            - en-pr
            - en-pt
            - en-pw
            - en-ro
            - en-rw
            - en-sb
            - en-sc
            - en-sd
            - en-se
            - en-sg
            - en-sh
            - en-si
            - en-sk
            - en-sl
            - en-ss
            - en-sx
            - en-sz
            - en-tc
            - en-th
            - en-tk
            - en-tn
            - en-to
            - en-tt
            - en-tv
            - en-tz
            - en-ug
            - en-um
            - en-us
            - en-vc
            - en-vg
            - en-vi
            - en-vn
            - en-vu
            - en-ws
            - en-za
            - en-zm
            - en-zw
            - eo
            - eo-001
            - es
            - es-419
            - es-ar
            - es-bo
            - es-br
            - es-bz
            - es-cl
            - es-co
            - es-cr
            - es-cu
            - es-do
            - es-ea
            - es-ec
            - es-es
            - es-gq
            - es-gt
            - es-hn
            - es-ic
            - es-mx
            - es-ni
            - es-pa
            - es-pe
            - es-ph
            - es-pr
            - es-py
            - es-sv
            - es-us
            - es-uy
            - es-ve
            - et
            - et-ee
            - eu
            - eu-es
            - ewo
            - ewo-cm
            - fa
            - fa-af
            - fa-ir
            - ff
            - ff-bf
            - ff-cm
            - ff-gh
            - ff-gm
            - ff-gn
            - ff-gw
            - ff-lr
            - ff-mr
            - ff-ne
            - ff-ng
            - ff-sl
            - ff-sn
            - fi
            - fi-fi
            - fil
            - fil-ph
            - fj
            - fo
            - fo-dk
            - fo-fo
            - fr
            - fr-be
            - fr-bf
            - fr-bi
            - fr-bj
            - fr-bl
            - fr-ca
            - fr-cd
            - fr-cf
            - fr-cg
            - fr-ch
            - fr-ci
            - fr-cm
            - fr-dj
            - fr-dz
            - fr-fr
            - fr-ga
            - fr-gf
            - fr-gn
            - fr-gp
            - fr-gq
            - fr-ht
            - fr-km
            - fr-lu
            - fr-ma
            - fr-mc
            - fr-mf
            - fr-mg
            - fr-ml
            - fr-mq
            - fr-mr
            - fr-mu
            - fr-nc
            - fr-ne
            - fr-pf
            - fr-pm
            - fr-re
            - fr-rw
            - fr-sc
            - fr-sn
            - fr-sy
            - fr-td
            - fr-tg
            - fr-tn
            - fr-vu
            - fr-wf
            - fr-yt
            - frr
            - frr-de
            - fur
            - fur-it
            - fy
            - fy-nl
            - ga
            - ga-gb
            - ga-ie
            - gaa
            - gaa-gh
            - gd
            - gd-gb
            - gl
            - gl-es
            - gn
            - gsw
            - gsw-ch
            - gsw-fr
            - gsw-li
            - gu
            - gu-in
            - guz
            - guz-ke
            - gv
            - gv-im
            - ha
            - ha-gh
            - ha-ne
            - ha-ng
            - haw
            - haw-us
            - he
            - he-il
            - hi
            - hi-in
            - hmn
            - ho
            - hr
            - hr-ba
            - hr-hr
            - hsb
            - hsb-de
            - ht
            - ht-ht
            - hu
            - hu-hu
            - hy
            - hy-am
            - hz
            - ia
            - ia-001
            - id
            - id-id
            - ie
            - ie-ee
            - ig
            - ig-ng
            - ii
            - ii-cn
            - ik
            - io
            - is
            - is-is
            - it
            - it-ch
            - it-it
            - it-sm
            - it-va
            - iu
            - ja
            - ja-jp
            - jgo
            - jgo-cm
            - jmc
            - jmc-tz
            - jv
            - jv-id
            - ka
            - ka-ge
            - kab
            - kab-dz
            - kam
            - kam-ke
            - kar
            - kde
            - kde-tz
            - kea
            - kea-cv
            - kg
            - kgp
            - kgp-br
            - kh
            - khq
            - khq-ml
            - ki
            - ki-ke
            - kj
            - kk
            - kk-kz
            - kkj
            - kkj-cm
            - kl
            - kl-gl
            - kln
            - kln-ke
            - km
            - km-kh
            - kn
            - kn-in
            - ko
            - ko-cn
            - ko-kp
            - ko-kr
            - kok
            - kok-in
            - kr
            - ks
            - ks-in
            - ksb
            - ksb-tz
            - ksf
            - ksf-cm
            - ksh
            - ksh-de
            - ku
            - ku-tr
            - kv
            - kw
            - kw-gb
            - kxv
            - kxv-in
            - ky
            - ky-kg
            - la
            - lag
            - lag-tz
            - lb
            - lb-lu
            - lg
            - lg-ug
            - li
            - lij
            - lij-it
            - lkt
            - lkt-us
            - lmo
            - lmo-it
            - ln
            - ln-ao
            - ln-cd
            - ln-cf
            - ln-cg
            - lo
            - lo-la
            - lrc
            - lrc-iq
            - lrc-ir
            - lt
            - lt-lt
            - lu
            - lu-cd
            - luo
            - luo-ke
            - luy
            - luy-ke
            - lv
            - lv-lv
            - mai
            - mai-in
            - mas
            - mas-ke
            - mas-tz
            - mdf
            - mdf-ru
            - mer
            - mer-ke
            - mfe
            - mfe-mu
            - mg
            - mg-mg
            - mgh
            - mgh-mz
            - mgo
            - mgo-cm
            - mh
            - mi
            - mi-nz
            - mk
            - mk-mk
            - ml
            - ml-in
            - mn
            - mn-mn
            - mni
            - mni-in
            - mr
            - mr-in
            - ms
            - ms-bn
            - ms-id
            - ms-my
            - ms-sg
            - mt
            - mt-mt
            - mua
            - mua-cm
            - my
            - my-mm
            - mzn
            - mzn-ir
            - na
            - naq
            - naq-na
            - nb
            - nb-no
            - nb-sj
            - nd
            - nd-zw
            - nds
            - nds-de
            - nds-nl
            - ne
            - ne-in
            - ne-np
            - ng
            - nl
            - nl-aw
            - nl-be
            - nl-bq
            - nl-ch
            - nl-cw
            - nl-lu
            - nl-nl
            - nl-sr
            - nl-sx
            - nmg
            - nmg-cm
            - nn
            - nn-no
            - nnh
            - nnh-cm
            - 'no'
            - no-no
            - nqo
            - nqo-gn
            - nr
            - nso
            - nso-za
            - nus
            - nus-ss
            - nv
            - ny
            - nyn
            - nyn-ug
            - oc
            - oc-es
            - oc-fr
            - oj
            - om
            - om-et
            - om-ke
            - or
            - or-in
            - os
            - os-ge
            - os-ru
            - pa
            - pa-in
            - pa-pk
            - pcm
            - pcm-ng
            - pi
            - pis
            - pis-sb
            - pl
            - pl-pl
            - prg
            - prg-001
            - ps
            - ps-af
            - ps-pk
            - pt
            - pt-ao
            - pt-br
            - pt-ch
            - pt-cv
            - pt-gq
            - pt-gw
            - pt-lu
            - pt-mo
            - pt-mz
            - pt-pt
            - pt-st
            - pt-tl
            - qu
            - qu-bo
            - qu-ec
            - qu-pe
            - raj
            - raj-in
            - rm
            - rm-ch
            - rn
            - rn-bi
            - ro
            - ro-md
            - ro-ro
            - rof
            - rof-tz
            - ru
            - ru-by
            - ru-kg
            - ru-kz
            - ru-md
            - ru-ru
            - ru-ua
            - rw
            - rw-rw
            - rwk
            - rwk-tz
            - sa
            - sa-in
            - sah
            - sah-ru
            - saq
            - saq-ke
            - sat
            - sat-in
            - sbp
            - sbp-tz
            - sc
            - sc-it
            - sd
            - sd-in
            - sd-pk
            - se
            - se-fi
            - se-no
            - se-se
            - seh
            - seh-mz
            - ses
            - ses-ml
            - sg
            - sg-cf
            - shi
            - shi-ma
            - si
            - si-lk
            - sk
            - sk-sk
            - sl
            - sl-si
            - sm
            - smn
            - smn-fi
            - sms
            - sms-fi
            - sn
            - sn-zw
            - so
            - so-dj
            - so-et
            - so-ke
            - so-so
            - sq
            - sq-al
            - sq-mk
            - sq-xk
            - sr
            - sr-ba
            - sr-cs
            - sr-me
            - sr-rs
            - sr-xk
            - ss
            - st
            - st-ls
            - st-za
            - su
            - su-id
            - sv
            - sv-ax
            - sv-fi
            - sv-se
            - sw
            - sw-cd
            - sw-ke
            - sw-tz
            - sw-ug
            - sy
            - syr
            - syr-iq
            - syr-sy
            - szl
            - szl-pl
            - ta
            - ta-in
            - ta-lk
            - ta-my
            - ta-sg
            - te
            - te-in
            - teo
            - teo-ke
            - teo-ug
            - tg
            - tg-tj
            - th
            - th-th
            - ti
            - ti-er
            - ti-et
            - tk
            - tk-tm
            - tl
            - tn
            - tn-bw
            - tn-za
            - to
            - to-to
            - tok
            - tok-001
            - tr
            - tr-cy
            - tr-tr
            - ts
            - tt
            - tt-ru
            - tw
            - twq
            - twq-ne
            - ty
            - tzm
            - tzm-ma
            - ug
            - ug-cn
            - uk
            - uk-ua
            - ur
            - ur-in
            - ur-pk
            - uz
            - uz-af
            - uz-uz
            - vai
            - vai-lr
            - ve
            - vec
            - vec-it
            - vi
            - vi-vn
            - vmw
            - vmw-mz
            - vo
            - vo-001
            - vun
            - vun-tz
            - wa
            - wae
            - wae-ch
            - wo
            - wo-sn
            - xh
            - xh-za
            - xnr
            - xnr-in
            - xog
            - xog-ug
            - yav
            - yav-cm
            - yi
            - yi-001
            - yi-ua
            - yo
            - yo-bj
            - yo-ng
            - yrl
            - yrl-br
            - yrl-co
            - yrl-ve
            - yue
            - yue-cn
            - yue-hk
            - yue-mo
            - za
            - za-cn
            - zgh
            - zgh-ma
            - zh
            - zh-cn
            - zh-hans
            - zh-hant
            - zh-hk
            - zh-mo
            - zh-my
            - zh-sg
            - zh-tw
            - zu
            - zu-za
        layoutSections:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/LayoutSection'
          description: A collection of layout sections used on the page.
        linkRelCanonicalUrl:
          type: string
          description: The canonical URL for the page.
        mabExperimentId:
          type: string
          description: The ID of the MAB experiment associated with the page.
        metaDescription:
          type: string
          description: The meta description of the page.
        name:
          type: string
          description: The name of the page.
        pageExpiryDate:
          type: integer
          description: The date and time when the page will expire, in ISO 8601 format.
          format: int64
        pageExpiryEnabled:
          type: boolean
          description: A boolean indicating if page expiry is enabled.
        pageExpiryRedirectId:
          type: integer
          description: The ID of the page to redirect to upon expiry.
          format: int64
        pageExpiryRedirectUrl:
          type: string
          description: The URL to redirect to upon expiry.
        pageRedirected:
          type: boolean
          description: A boolean indicating if the page is redirected.
        password:
          type: string
          description: The password required to access the page, if applicable.
        publicAccessRules:
          type: array
          description: A collection of public access rules applied to the page.
          items:
            $ref: '#/components/schemas/PublicAccessRule'
        publicAccessRulesEnabled:
          type: boolean
          description: >-
            A boolean indicating if public access rules are enabled for the
            page.
        publishDate:
          type: string
          description: The date and time when the page was published, in ISO 8601 format.
          format: date-time
        publishImmediately:
          type: boolean
          description: A boolean indicating if the page should be published immediately.
        slug:
          type: string
          description: The URL slug for the page, used in the page's URL.
        state:
          maxLength: 25
          type: string
          description: The current state of the page, such as 'draft' or 'published'.
        subcategory:
          type: string
          description: The subcategory of the page.
        templatePath:
          type: string
          description: The path to the template used by the page.
        themeSettingsValues:
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: A map of theme setting names to their values.
        translatedFromId:
          type: string
          description: The ID of the original page from which this page was translated.
        translations:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ContentLanguageVariation'
          description: >-
            A map of language codes to page IDs for translated versions of the
            page.
        updated:
          type: string
          description: >-
            The date and time when the page was last updated, in ISO 8601
            format.
          format: date-time
        updatedById:
          type: string
          description: The ID of the user who last updated the page.
        url:
          type: string
          description: The full URL of the page.
        useFeaturedImage:
          type: boolean
          description: A boolean indicating if the featured image should be used.
        widgetContainers:
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: A collection of widget containers used on the page.
        widgets:
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: A collection of widgets used on the page.
    LayoutSection:
      required:
        - cells
        - cssClass
        - cssId
        - cssStyle
        - label
        - name
        - params
        - rowMetaData
        - rows
        - styles
        - type
        - w
        - x
      type: object
      properties:
        cells:
          type: array
          description: >-
            The cells contained within the layout section, defining individual
            content areas.
          items:
            $ref: '#/components/schemas/LayoutSection'
        cssClass:
          type: string
          description: The CSS class applied to the layout section for styling purposes.
        cssId:
          type: string
          description: The CSS ID assigned to the layout section for unique identification.
        cssStyle:
          type: string
          description: Inline CSS styles applied directly to the layout section.
        label:
          type: string
          description: The display label for the layout section.
        name:
          type: string
          description: The internal name of the layout section.
        params:
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: Additional parameters or settings for the layout section.
        rowMetaData:
          type: array
          description: Metadata associated with the rows in the layout section.
          items:
            $ref: '#/components/schemas/RowMetaData'
        rows:
          type: array
          description: The number of rows contained within the layout section.
          items:
            type: object
            additionalProperties:
              $ref: '#/components/schemas/LayoutSection'
        styles:
          $ref: '#/components/schemas/Styles'
        type:
          type: string
          description: The type of the layout section, indicating its role or function.
        w:
          type: integer
          description: The width of the section within the layout.
          format: int32
        x:
          type: integer
          description: The x-coordinate of the section within the layout.
          format: int32
    PublicAccessRule:
      type: object
      properties: {}
    ContentLanguageVariation:
      required:
        - archivedInDashboard
        - authorName
        - campaign
        - campaignName
        - created
        - id
        - name
        - password
        - publicAccessRules
        - publicAccessRulesEnabled
        - publishDate
        - slug
        - state
        - updated
      type: object
      properties:
        archivedInDashboard:
          type: boolean
          description: >-
            A boolean indicating whether the language variation is archived in
            the dashboard.
        authorName:
          type: string
          description: >-
            The name of the author who created or last modified the language
            variation.
        campaign:
          type: string
          description: The campaign associated with the language variation, if any.
        campaignName:
          type: string
          description: The name of the campaign associated with the language variation.
        created:
          type: string
          description: >-
            The date and time when the language variation was created, in ISO
            8601 format.
          format: date-time
        id:
          type: integer
          description: The unique identifier for this language variation.
          format: int64
        name:
          type: string
          description: The name of the language variation.
        password:
          type: string
          description: A password required to access the language variation, if applicable.
        publicAccessRules:
          type: array
          description: >-
            The set of rules that define public access permissions for the
            language variation.
          items:
            $ref: '#/components/schemas/PublicAccessRule'
        publicAccessRulesEnabled:
          type: boolean
          description: >-
            A boolean indicating whether public access rules are enabled for
            this language variation.
        publishDate:
          type: string
          description: >-
            The date and time when the language variation was published, in ISO
            8601 format.
          format: date-time
        slug:
          type: string
          description: The URL-friendly string that identifies the language variation.
        state:
          type: string
          description: >-
            The current state of the language variation, such as 'draft' or
            'published'.
        tagIds:
          type: array
          description: An array of tag identifiers associated with the language variation.
          items:
            type: integer
            format: int64
        updated:
          type: string
          description: >-
            The date and time when the language variation was last updated, in
            ISO 8601 format.
          format: date-time
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: A string representing the general category of the error.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            A map containing additional context or metadata related to the
            error.
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A string that serves as a unique identifier for the request, useful
            for tracking and debugging.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: An array of objects detailing specific errors that occurred.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            An array of objects providing URLs to related resources or
            documentation about the error.
        message:
          type: string
          description: A string providing a human-readable description of the error.
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A string providing a more specific classification of the error
            within its category.
      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
    RowMetaData:
      required:
        - cssClass
        - styles
      type: object
      properties:
        cssClass:
          type: string
          description: >-
            A string representing the CSS class or classes applied to the row.
            This allows for additional styling through external or internal
            stylesheets.
        styles:
          $ref: '#/components/schemas/Styles'
    Styles:
      required:
        - backgroundColor
        - backgroundGradient
        - backgroundImage
        - flexboxPositioning
        - forceFullWidthSection
        - maxWidthSectionCentering
        - verticalAlignment
      type: object
      properties:
        backgroundColor:
          $ref: '#/components/schemas/RGBAColor'
        backgroundGradient:
          $ref: '#/components/schemas/Gradient'
        backgroundImage:
          $ref: '#/components/schemas/BackgroundImage'
        breakpointStyles:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/BreakpointStyles'
          description: Specifies styling adjustments for different responsive breakpoints.
        flexboxPositioning:
          type: string
          description: >-
            Indicates whether flexbox positioning should be used for the section
            layout.
          enum:
            - BOTTOM_CENTER
            - BOTTOM_LEFT
            - BOTTOM_RIGHT
            - MIDDLE_CENTER
            - MIDDLE_LEFT
            - MIDDLE_RIGHT
            - TOP_CENTER
            - TOP_LEFT
            - TOP_RIGHT
        forceFullWidthSection:
          type: boolean
          description: >-
            A boolean indicating whether the section should be forced to full
            width.
        maxWidthSectionCentering:
          type: integer
          description: Determines the maximum width for centering the section content.
          format: int32
        verticalAlignment:
          type: string
          description: Specifies the vertical alignment of content within the section.
          enum:
            - BOTTOM
            - MIDDLE
            - TOP
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: A specific code representing the type of error.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Additional context or parameters related to the error, often
            provided as a map of key-value pairs.
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: >-
            The location in the request where the error occurred, such as
            'query' or 'body'.
        message:
          type: string
          description: A descriptive message explaining the error.
        subCategory:
          type: string
          description: >-
            A more specific classification of the error within a broader
            category.
      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.
    RGBAColor:
      required:
        - a
        - b
        - g
        - r
      type: object
      properties:
        a:
          type: number
          description: >-
            The alpha component of the color, representing the transparency
            level as a decimal between 0 (completely transparent) and 1
            (completely opaque).
        b:
          type: integer
          description: >-
            The blue component of the color, represented as an integer between 0
            and 255.
          format: int32
        g:
          type: integer
          description: >-
            The green component of the color, represented as an integer between
            0 and 255.
          format: int32
        r:
          type: integer
          description: >-
            The red component of the color, represented as an integer between 0
            and 255.
          format: int32
    Gradient:
      required:
        - angle
        - colors
        - sideOrCorner
      type: object
      properties:
        angle:
          $ref: '#/components/schemas/Angle'
        colors:
          type: array
          description: >-
            An array of color stops for the gradient. Each color stop is defined
            by a color and its position within the gradient.
          items:
            $ref: '#/components/schemas/ColorStop'
        sideOrCorner:
          $ref: '#/components/schemas/SideOrCorner'
    BackgroundImage:
      required:
        - backgroundPosition
        - backgroundSize
        - imageUrl
      type: object
      properties:
        backgroundPosition:
          type: string
          description: >-
            Defines the initial position of the background image. This property
            specifies where the image is placed within the background area.
        backgroundSize:
          type: string
          description: >-
            Specifies the size of the background image. This property determines
            how the image is scaled or repeated to fit the background area.
        imageUrl:
          type: string
          description: >-
            The URL of the background image. This should be a string
            representing a valid URL.
    BreakpointStyles:
      required:
        - hidden
        - margin
        - padding
      type: object
      properties:
        hidden:
          type: boolean
          description: >-
            The hidden property is a boolean that determines whether the
            component is visible or not. If true, the component will be hidden.
        margin:
          $ref: '#/components/schemas/Margin'
        padding:
          $ref: '#/components/schemas/Padding'
    Angle:
      required:
        - units
        - value
      type: object
      properties:
        units:
          type: string
          description: >-
            The units in which the angle is measured. Common units include
            degrees or radians.
          enum:
            - DEGREES
            - GRADIANS
            - RADIANS
            - TURNS
        value:
          type: number
          description: >-
            The numerical value of the angle. This is typically a floating-point
            number representing the magnitude of the angle.
    ColorStop:
      required:
        - color
      type: object
      properties:
        color:
          $ref: '#/components/schemas/RGBAColor'
    SideOrCorner:
      required:
        - horizontalSide
        - verticalSide
      type: object
      properties:
        horizontalSide:
          type: string
          description: >-
            Specifies the horizontal side of a layout or element. Possible
            values might include 'left' or 'right', though specific values are
            not defined in the spec.
          enum:
            - CENTER
            - LEFT
            - RIGHT
        verticalSide:
          type: string
          description: >-
            Specifies the vertical side of a layout or element. Possible values
            might include 'top' or 'bottom', though specific values are not
            defined in the spec.
          enum:
            - BOTTOM
            - MIDDLE
            - TOP
    Margin:
      required:
        - bottom
        - top
      type: object
      properties:
        bottom:
          $ref: '#/components/schemas/Size'
        top:
          $ref: '#/components/schemas/Size'
    Padding:
      required:
        - bottom
        - left
        - right
        - top
      type: object
      properties:
        bottom:
          $ref: '#/components/schemas/Size'
        left:
          $ref: '#/components/schemas/Size'
        right:
          $ref: '#/components/schemas/Size'
        top:
          $ref: '#/components/schemas/Size'
    Size:
      required:
        - units
        - value
      type: object
      properties:
        units:
          type: string
          description: >-
            The unit of measurement for the size value. This property specifies
            how the size value is quantified, such as 'pixels', 'inches', or
            'centimeters'.
          enum:
            - CH
            - CM
            - EM
            - EX
            - IN
            - LH
            - MM
            - PC
            - PERCENTAGE
            - PT
            - PX
            - Q
            - REM
            - VH
            - VMAX
            - VMIN
            - VW
        value:
          type: number
          description: >-
            A numerical representation of the size. This property holds the
            magnitude or amount of the size.
  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:
            cms.pages.landing_pages.read: ''
            cms.pages.site_pages.read: ''
            content: ''
            marketplace_validation: ''
      x-hubspot-app-availability:
        cms.pages.landing_pages.read:
          user:
            - public
            - private
          developer: true
        cms.pages.site_pages.read:
          user:
            - public
            - private
          developer: true
        content:
          portal:
            - public
            - private
          developer: false
        marketplace_validation:
          developer: true

````