For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
        • GETReturns a fact by UUID
        • DELDelete a fact for the given UUID
        • POSTEnd multiple sessions.
        • POSTSearch sessions for the specified query.
        • PATCHUpdate a session.
        • POSTDeprecated: Classify Session
        • POSTEnd a session
        • GETReturns all facts for a session by ID
        • POSTAdds facts to a session
        • GETGet Message
        • PATCHUpdates the metadata of a message.
        • POSTDeprecated: Use search_sessions method instead
        • GETReturns a session's summaries by ID
        • GETSynthesize a question
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceDeprecatedMemory

Update a session.

PATCH
https://api.getzep.com/api/v2/sessions/:sessionId
PATCH
/api/v2/sessions/:sessionId
$curl -X PATCH https://api.getzep.com/api/v2/sessions/sessionId \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "metadata": {}
>}'
1{
2 "classifications": {},
3 "created_at": "string",
4 "deleted_at": "string",
5 "ended_at": "string",
6 "fact_rating_instruction": {
7 "examples": {
8 "high": "string",
9 "low": "string",
10 "medium": "string"
11 },
12 "instruction": "string"
13 },
14 "facts": [
15 "string"
16 ],
17 "id": 1,
18 "metadata": {},
19 "project_uuid": "string",
20 "session_id": "string",
21 "updated_at": "string",
22 "user_id": "string",
23 "uuid": "string"
24}
Update Session Metadata.
Was this page helpful?
Previous

Deprecated: Classify Session

Next
Built with

Path parameters

sessionIdstringRequired
The unique identifier of the session.

Request

Session
metadatamap from strings to anyRequired
Deprecated
fact_rating_instructionobjectOptional
Optional instruction to use for fact rating. Fact rating instructions can not be unset.

Response

The updated session.
classificationsmap from strings to strings
created_atstring
deleted_atstring
ended_atstring
fact_rating_instructionobject
Deprecated
factslist of strings
Deprecated
idinteger
metadatamap from strings to any
Deprecated
project_uuidstring
session_idstring
updated_atstring
Deprecated
user_idstring
uuidstring

Errors

400
Bad Request Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error