{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-event-response-schema.json",
  "title": "EventResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-events-api-openapi.yml#/components/schemas/EventResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the event"
    },
    "title": {
      "type": "string",
      "description": "Title of the event"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the event"
    },
    "campaign_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unique identifier of the campaign associated with the event"
    },
    "start_date": {
      "type": "string",
      "description": "Start date of the event in ISO 8601 UTC format"
    },
    "end_date": {
      "type": "string",
      "description": "End date of the event in ISO 8601 UTC format"
    },
    "is_all_day": {
      "type": "boolean",
      "description": "Whether the event is a day long event or not"
    },
    "is_archived": {
      "type": "boolean",
      "description": "Whether the event is archived or not"
    },
    "created_by": {
      "type": "string",
      "description": "Unique identifier of the user who created the event"
    },
    "reference_id": {
      "type": "string",
      "description": "Reference ID of the event"
    },
    "links": {
      "type": "object",
      "description": "Meta links",
      "properties": {
        "self": {
          "type": "string",
          "description": "URL of the event"
        },
        "campaign": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the campaign associated with the event"
        }
      },
      "required": [
        "self",
        "campaign"
      ]
    }
  },
  "required": [
    "id",
    "title",
    "description",
    "campaign_id",
    "start_date",
    "end_date",
    "is_archived",
    "is_all_day",
    "reference_id",
    "created_by",
    "links"
  ]
}