{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-cmp-content-schema.json",
  "title": "CmpContent",
  "description": "A content item in the CMP content repository",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-content-api-openapi.yml#/components/schemas/CmpContent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the content item"
    },
    "title": {
      "type": "string",
      "description": "Title of the content item"
    },
    "body": {
      "type": "string",
      "description": "Body content"
    },
    "content_type": {
      "type": "string",
      "description": "Type of content"
    },
    "status": {
      "type": "string",
      "description": "Publication status"
    },
    "task_id": {
      "type": "string",
      "description": "Associated task identifier"
    },
    "labels": {
      "type": "array",
      "description": "Labels associated with the content",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the content was last updated"
    }
  }
}