> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an event (deprecated)

> Deprecated. Use `PUT /v1/events/{event_id}` instead.




## OpenAPI

````yaml https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/openapi.yaml put /events
openapi: 3.1.0
info:
  title: HoneyHive Data Plane API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.2.1
servers:
  - url: https://api.honeyhive.ai
security:
  - BearerAuth: []
tags:
  - name: Charts
    description: >
      Define and manage saved charts. Charts are visualizations that aggregate
      metrics over time with bucketing, filters, and groupings.
  - name: Configurations
    description: >
      Manage prompt configurations, i.e. model parameters, message templates,
      and response settings that can be versioned and deployed without code
      changes.
  - name: Datapoints
    description: >
      Manage individual records inside datasets, including batch creation and
      mapping to source events.
  - name: Datasets
    description: >
      Curate collections of datapoints used as test sets for evaluations and
      experiments.
  - name: Events
    description: >
      Read and write trace events. Events are the spans that capture every step
      of an AI application's execution.
  - name: Experiments
    description: >
      Run, retrieve, and compare evaluation runs to measure how prompt or
      configuration changes affect agent performance.
  - name: Metric Versions
    description: >
      Snapshot, list, and deploy versions of a metric's definition so changes
      can be reviewed and rolled back without losing history.
  - name: Metrics
    description: >
      Define and run evaluators, i.e. automated quality checks that score traces
      against criteria like accuracy, safety, or correctness.
  - name: Queues
    description: >
      Manage annotation queues for human review of traces, turning expert
      feedback into labeled datasets.
  - name: Sessions
    description: >
      Group related trace events into sessions, the top-level container for a
      multi-step or multi-service AI interaction.
paths:
  /events:
    put:
      tags:
        - Events
      summary: Update an event (deprecated)
      description: |
        Deprecated. Use `PUT /v1/events/{event_id}` instead.
      operationId: updateEventLegacy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LegacyUpdateEventRequest'
            example:
              event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
              metadata:
                cost: 0.00008
                completion_tokens: 23
                prompt_tokens: 35
                total_tokens: 58
              feedback:
                rating: 5
              metrics:
                num_words: 2
              outputs:
                role: assistant
                content: Hello world
              config:
                template:
                  - role: system
                    content: Hello, {{ name }}!
              user_properties:
                user_id: 691b1f94-d38c-4e92-b051-5e03fee9ff86
              duration: 42
      responses:
        '200':
          description: Event updated
        '400':
          description: Bad request
      deprecated: true
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:
          description: >-
            Output data to replace on the event (accepts objects, strings,
            arrays, or scalars)
        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
      description: >-
        Request to update an existing event (deprecated — use PUT
        /v1/events/{event_id})
      deprecated: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````