Skip to main content
PUT
/
events
Update an event (deprecated)
curl --request PUT \
  --url https://api.dp1.us.honeyhive.ai/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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
}
'

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to update an existing event (deprecated — use PUT /v1/events/{event_id})

event_id
string
required

Event ID to update

metadata
object

Metadata fields to merge into the event

feedback
object

Feedback fields to merge into the event

metrics
object

Metric values to merge into the event

outputs
any

Output data to replace on the event (accepts objects, strings, arrays, or scalars)

config
object

Configuration fields to merge into the event

user_properties
object

User properties to merge into the event

duration
number

Event duration in milliseconds

end_time
number

Unix timestamp in milliseconds for event end

children_ids
string[]

IDs of child events to set (must be non-empty; an empty array is ignored)

Response

Event updated