{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-template-collection-schema.json",
  "title": "TemplateCollection",
  "description": "Collection of site templates",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-templates-api-openapi.yml#/components/schemas/TemplateCollection",
  "type": "object",
  "properties": {
    "templates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Template"
      }
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "Template": {
      "type": "object",
      "description": "An Experience Cloud site template",
      "properties": {
        "developerName": {
          "type": "string",
          "description": "Developer name of the template"
        },
        "id": {
          "type": "string",
          "description": "Template ID"
        },
        "label": {
          "type": "string",
          "description": "Display label for the template"
        },
        "publisher": {
          "type": "string",
          "description": "Publisher of the template (e.g., Salesforce)"
        },
        "templateCategory": {
          "type": "string",
          "description": "Category of the template",
          "enum": [
            "LWR",
            "Aura"
          ]
        },
        "templateType": {
          "type": "string",
          "description": "Type of template",
          "enum": [
            "Build Your Own (LWR)",
            "Microsite (LWR)",
            "Customer Account Portal",
            "Customer Service",
            "Partner Central",
            "Build Your Own (Aura)",
            "Help Center"
          ]
        },
        "description": {
          "type": "string",
          "description": "Description of the template"
        },
        "iconUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL of the template icon"
        },
        "previewUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL to preview the template"
        }
      }
    }
  }
}