{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-content-item-2-schema.json",
  "title": "ContentItem_2",
  "description": "A content item in the Optimizely CMS",
  "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_2",
  "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"
        }
      }
    },
    "name": {
      "type": "string",
      "description": "Display name of the content item"
    },
    "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"
        },
        "guidValue": {
          "type": "string",
          "format": "uuid",
          "description": "Parent GUID"
        }
      }
    },
    "language": {
      "type": "object",
      "description": "Language information",
      "properties": {
        "name": {
          "type": "string",
          "description": "Language code"
        },
        "displayName": {
          "type": "string",
          "description": "Language display name"
        }
      }
    },
    "status": {
      "type": "string",
      "description": "Content status",
      "enum": [
        "CheckedOut",
        "CheckedIn",
        "Published",
        "PreviouslyPublished",
        "Rejected",
        "DelayedPublish"
      ]
    },
    "startPublish": {
      "type": "string",
      "format": "date-time",
      "description": "Scheduled publish start time"
    },
    "stopPublish": {
      "type": "string",
      "format": "date-time",
      "description": "Scheduled publish end time"
    },
    "saved": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was last saved"
    },
    "properties": {
      "type": "object",
      "description": "Dynamic content properties specific to the content type",
      "additionalProperties": true
    }
  }
}