{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-content-collection-schema.json",
  "title": "ContentCollection",
  "description": "Collection of CMS content items",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-content-api-openapi.yml#/components/schemas/ContentCollection",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Content"
      }
    },
    "currentPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "nextPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "totalCount": {
      "type": "integer"
    }
  },
  "$defs": {
    "Content": {
      "type": "object",
      "description": "A CMS content item",
      "properties": {
        "contentKey": {
          "type": "string",
          "description": "Unique key for the content"
        },
        "contentUrlName": {
          "type": "string",
          "description": "URL-friendly name for the content"
        },
        "language": {
          "type": "string",
          "description": "Language code of the content"
        },
        "managedContentId": {
          "type": "string",
          "description": "Managed content record ID"
        },
        "publishedDate": {
          "type": "string",
          "format": "date-time",
          "description": "When the content was published"
        },
        "status": {
          "type": "string",
          "description": "Current status of the content",
          "enum": [
            "Draft",
            "Published",
            "Archived"
          ]
        },
        "title": {
          "type": "string",
          "description": "Title of the content"
        },
        "type": {
          "type": "string",
          "description": "Content type developer name"
        },
        "typeLabel": {
          "type": "string",
          "description": "Content type display label"
        },
        "body": {
          "type": "object",
          "description": "Content body fields (varies by content type)",
          "additionalProperties": true
        },
        "contentNodes": {
          "type": "object",
          "description": "Content nodes containing field values",
          "additionalProperties": {
            "$ref": "#/$defs/ContentNode"
          }
        }
      }
    },
    "ContentNode": {
      "type": "object",
      "description": "A content node representing a field value",
      "properties": {
        "nodeType": {
          "type": "string",
          "description": "Type of the content node",
          "enum": [
            "Media",
            "MultilineText",
            "RichText",
            "Text",
            "Url",
            "DateTime",
            "NameField"
          ]
        },
        "value": {
          "type": "string",
          "description": "Text value of the node"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL value of the node (for Media and Url types)"
        },
        "altText": {
          "type": "string",
          "description": "Alternative text (for Media type)"
        },
        "title": {
          "type": "string",
          "description": "Title of the node"
        }
      }
    }
  }
}