Logging
Update a session event
PUT
/
session
/
{session_id}
Authorization
Path
Body
curl --request PUT \
--url https://api.honeyhive.ai/session/{session_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"duration": 123,
"error": "<string>",
"feedback": {},
"inputs": {},
"metadata": {},
"output": {},
"user_properties": {}
}'
{
"id": "<string>",
"success": true
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
session_id
string
requiredBody
application/json
duration
integer
Updated duration for the event
error
string
requiredUpdated error for the event
feedback
object
Updated feedback for the event
inputs
object
Updated inputs for the event
metadata
object
Updated metadata for the event
output
object
requiredUpdated outputs for the event
user_properties
object
Updated user properties for the event
Response
200 - application/json
id
string
The ID of the created object
success
boolean
Indicates whether the request was successful
curl --request PUT \
--url https://api.honeyhive.ai/session/{session_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"duration": 123,
"error": "<string>",
"feedback": {},
"inputs": {},
"metadata": {},
"output": {},
"user_properties": {}
}'
{
"id": "<string>",
"success": true
}