HubSpot · JSON Structure

Blog Posts Api Blog Post Input Structure

Input data for creating or updating a blog post

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

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

Properties

name slug htmlTitle postBody postSummary blogAuthorId contentGroupId campaign publishDate featuredImage featuredImageAltText metaDescription tagIds useFeaturedImage language

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/blog-posts-api-blog-post-input-structure.json",
  "name": "BlogPostInput",
  "description": "Input data for creating or updating a blog post",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Internal name of the blog post",
      "example": "Example Record"
    },
    "slug": {
      "type": "string",
      "description": "URL slug for the blog post",
      "example": "example-value"
    },
    "htmlTitle": {
      "type": "string",
      "description": "HTML title tag content",
      "example": "Example Record"
    },
    "postBody": {
      "type": "string",
      "description": "HTML content of the blog post body",
      "example": "This is an example description."
    },
    "postSummary": {
      "type": "string",
      "description": "Summary or excerpt of the blog post",
      "example": "example-value"
    },
    "blogAuthorId": {
      "type": "string",
      "description": "ID of the associated blog author",
      "example": "500123"
    },
    "contentGroupId": {
      "type": "string",
      "description": "ID of the blog this post belongs to",
      "example": "500123"
    },
    "campaign": {
      "type": "string",
      "description": "Campaign GUID",
      "example": "example-value"
    },
    "publishDate": {
      "type": "datetime",
      "description": "Scheduled publish date",
      "example": "2025-03-15T14:30:00Z"
    },
    "featuredImage": {
      "type": "string",
      "description": "URL of the featured image",
      "example": "example-value"
    },
    "featuredImageAltText": {
      "type": "string",
      "description": "Alt text for the featured image",
      "example": "example-value"
    },
    "metaDescription": {
      "type": "string",
      "description": "Meta description for SEO",
      "example": "This is an example description."
    },
    "tagIds": {
      "type": "array",
      "items": {
        "type": "int32"
      },
      "description": "Tag IDs to associate",
      "example": [
        500123
      ]
    },
    "useFeaturedImage": {
      "type": "boolean",
      "description": "Whether to display the featured image",
      "example": true
    },
    "language": {
      "type": "string",
      "description": "Language code",
      "example": "en"
    }
  },
  "required": [
    "name",
    "contentGroupId"
  ]
}