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

Path Parameters

event_id
string<uuid>
required

The unique identifier of the event to update

Body

application/json

Request body for PUT /v1/events/{event_id}

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