{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-content-input-schema.json",
  "title": "ContentInput",
  "description": "Input for creating or fully updating a content item",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-content-api-openapi.yml#/components/schemas/ContentInput",
  "type": "object",
  "required": [
    "name",
    "contentType",
    "parentLink"
  ],
  "properties": {
    "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"
        }
      }
    },
    "language": {
      "type": "object",
      "description": "Language information",
      "properties": {
        "name": {
          "type": "string",
          "description": "Language code"
        }
      }
    },
    "status": {
      "type": "string",
      "description": "Content status",
      "enum": [
        "CheckedOut",
        "CheckedIn",
        "Published"
      ]
    },
    "startPublish": {
      "type": "string",
      "format": "date-time",
      "description": "Scheduled publish start time"
    },
    "properties": {
      "type": "object",
      "description": "Dynamic content properties specific to the content type",
      "additionalProperties": true
    }
  }
}