Memory

Update a session

PATCH
Update Session Metadata

Path parameters

sessionIdstringRequired
Session ID

Request

This endpoint expects an object.
metadata
map from strings to anyRequired
The metadata to update

Response

This endpoint returns an object
classifications
map from strings to stringsOptional
created_at
stringOptional
deleted_at
stringOptional
ended_at
stringOptional
fact_version_uuid
stringOptional
facts
list of stringsOptional
id
integerOptional
metadata
map from strings to anyOptional
project_uuid
stringOptional
session_id
stringOptional
updated_at
stringOptional
user_id
stringOptional
Must be a pointer to allow for null values
uuid
stringOptional

Errors

PATCH
1curl -X PATCH https://api.getzep.com/api/v2/sessions/sessionId \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "metadata": {}
6}'
1{
2 "classifications": {
3 "classifications": "classifications"
4 },
5 "created_at": "created_at",
6 "deleted_at": "deleted_at",
7 "ended_at": "ended_at",
8 "fact_version_uuid": "fact_version_uuid",
9 "facts": [
10 "facts"
11 ],
12 "id": 1,
13 "metadata": {
14 "metadata": {
15 "key": "value"
16 }
17 },
18 "project_uuid": "project_uuid",
19 "session_id": "session_id",
20 "updated_at": "updated_at",
21 "user_id": "user_id",
22 "uuid": "uuid"
23}