HubSpot · JSON Structure

Source Code Api Asset File Metadata Structure

Metadata for a file or folder in the CMS Developer File System

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

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

Properties

id name folder children hash createdAt updatedAt archivedAt

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/source-code-api-asset-file-metadata-structure.json",
  "name": "AssetFileMetadata",
  "description": "Metadata for a file or folder in the CMS Developer File System",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The full path of the file in the CMS Developer File System",
      "example": "templates/blog/post.html"
    },
    "name": {
      "type": "string",
      "description": "The name of the file or folder",
      "example": "post.html"
    },
    "folder": {
      "type": "boolean",
      "description": "Whether this path represents a folder (true) or file (false)",
      "example": false
    },
    "children": {
      "type": "array",
      "description": "List of child files and folders (only present for folders)",
      "items": {
        "type": "string"
      },
      "example": [
        "header.html",
        "footer.html",
        "sidebar.html"
      ]
    },
    "hash": {
      "type": "string",
      "description": "Content hash for change detection",
      "example": "a1b2c3d4e5f6"
    },
    "createdAt": {
      "type": "int64",
      "description": "Unix timestamp when the file was created",
      "example": 1705312200000
    },
    "updatedAt": {
      "type": "int64",
      "description": "Unix timestamp when the file was last updated",
      "example": 1705398600000
    },
    "archivedAt": {
      "type": "int64",
      "description": "Unix timestamp when the file was archived (if applicable)",
      "example": 0
    }
  },
  "required": [
    "id",
    "name",
    "folder",
    "createdAt",
    "updatedAt"
  ]
}