HubSpot · JSON Structure

Cms Pages Api Page Create Request Structure

Request body for creating a CMS page.

Type: object Properties: 8 Required: 2
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

PageCreateRequest is a JSON Structure definition published by HubSpot, describing 8 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name htmlTitle slug metaDescription domain language templatePath layoutSections

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/cms-pages-api-page-create-request-structure.json",
  "name": "PageCreateRequest",
  "description": "Request body for creating a CMS page.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The internal name of the page.",
      "example": "Example Record"
    },
    "htmlTitle": {
      "type": "string",
      "description": "The HTML title tag content.",
      "example": "Example Record"
    },
    "slug": {
      "type": "string",
      "description": "The URL slug for the page.",
      "example": "example-value"
    },
    "metaDescription": {
      "type": "string",
      "description": "The meta description for SEO.",
      "example": "This is an example description."
    },
    "domain": {
      "type": "string",
      "description": "The domain to host the page on.",
      "example": "example.hubspot.com"
    },
    "language": {
      "type": "string",
      "description": "The language code for the page content.",
      "example": "en"
    },
    "templatePath": {
      "type": "string",
      "description": "The path to the template to use for the page.",
      "example": "/content/templates/example"
    },
    "layoutSections": {
      "type": "object",
      "description": "The layout sections and widget data for the page content.",
      "additionalProperties": true,
      "example": {
        "key": "value"
      }
    }
  },
  "required": [
    "name",
    "slug"
  ]
}