{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-legacy-update-event-request-schema.json",
  "title": "LegacyUpdateEventRequest",
  "description": "Request to update an existing event (deprecated — use PUT /v1/events/{event_id})",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/honeyhive-ai-openapi.json#/components/schemas/LegacyUpdateEventRequest",
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "Event ID to update"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {},
      "description": "Metadata fields to merge into the event"
    },
    "feedback": {
      "type": "object",
      "additionalProperties": {},
      "description": "Feedback fields to merge into the event"
    },
    "metrics": {
      "type": "object",
      "additionalProperties": {},
      "description": "Metric values to merge into the event"
    },
    "outputs": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {},
      "description": "Output object to replace on the event. Must be an object or null; null preserves the existing outputs. Non-object values (strings, arrays, scalars) are rejected."
    },
    "config": {
      "type": "object",
      "additionalProperties": {},
      "description": "Configuration fields to merge into the event"
    },
    "user_properties": {
      "type": "object",
      "additionalProperties": {},
      "description": "User properties to merge into the event"
    },
    "duration": {
      "type": "number",
      "description": "Event duration in milliseconds"
    },
    "end_time": {
      "type": "number",
      "description": "Unix timestamp in milliseconds for event end"
    },
    "children_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of child events to set (must be non-empty; an empty array is ignored)"
    }
  },
  "required": [
    "event_id"
  ],
  "deprecated": true
}