{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-content-item-schema.json",
  "title": "ContentItem",
  "description": "A content item such as a page, block, or media file",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-content-api-openapi.yml#/components/schemas/ContentItem",
  "type": "object",
  "properties": {
    "contentLink": {
      "type": "object",
      "description": "Reference to this content item",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Numeric content ID"
        },
        "workId": {
          "type": "integer",
          "description": "Work ID for versioning"
        },
        "guidValue": {
          "type": "string",
          "format": "uuid",
          "description": "GUID for the content item"
        },
        "providerName": {
          "type": "string",
          "description": "Content provider name"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to access this content via the API"
        }
      }
    },
    "name": {
      "type": "string",
      "description": "Display name of the content item"
    },
    "language": {
      "type": "object",
      "description": "Language information for this content item",
      "properties": {
        "link": {
          "type": "string",
          "format": "uri",
          "description": "Language-specific URL"
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the language"
        },
        "name": {
          "type": "string",
          "description": "Language code"
        }
      }
    },
    "existingLanguages": {
      "type": "array",
      "description": "List of available language versions",
      "items": {
        "type": "object",
        "properties": {
          "link": {
            "type": "string",
            "format": "uri",
            "description": "URL for the language version"
          },
          "displayName": {
            "type": "string",
            "description": "Display name of the language"
          },
          "name": {
            "type": "string",
            "description": "Language code"
          }
        }
      }
    },
    "masterLanguage": {
      "type": "object",
      "description": "The master language of this content item",
      "properties": {
        "link": {
          "type": "string",
          "format": "uri",
          "description": "URL for the master language version"
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the master language"
        },
        "name": {
          "type": "string",
          "description": "Master language code"
        }
      }
    },
    "contentType": {
      "type": "array",
      "description": "Content type hierarchy",
      "items": {
        "type": "string"
      }
    },
    "parentLink": {
      "type": "object",
      "description": "Reference to the parent content item",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Parent content ID"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to access the parent content"
        }
      }
    },
    "routeSegment": {
      "type": "string",
      "description": "URL segment for routing"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Public URL of the content"
    },
    "changed": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was last changed"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was created"
    },
    "startPublish": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was published"
    },
    "status": {
      "type": "string",
      "description": "Publication status of the content"
    }
  }
}