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

Updates the metadata of a message.

Deprecated
PATCH
https://api.getzep.com/api/v2/sessions/:sessionId/messages/:messageUUID
PATCH
/api/v2/sessions/:sessionId/messages/:messageUUID
$curl -X PATCH https://api.getzep.com/api/v2/sessions/sessionId/messages/messageUUID \
> -H "Content-Type: application/json" \
> -d '{
> "metadata": {}
>}'
1{
2 "content": "string",
3 "role_type": "norole",
4 "created_at": "string",
5 "metadata": {},
6 "processed": true,
7 "role": "string",
8 "token_count": 1,
9 "updated_at": "string",
10 "uuid": "string"
11}
Updates the metadata of a message.
Was this page helpful?
Previous

Deprecated: Use search_sessions method instead

Next
Built with

Path parameters

sessionIdstringRequired
The ID of the session.
messageUUIDstringRequired
The UUID of the message.

Request

The metadata to update.
metadatamap from strings to anyRequired
Deprecated

Response

The updated message.
contentstring
The content of the message.
role_typeenum

The type of the role (e.g., “user”, “system”).

created_atstring
The timestamp of when the message was created.
metadatamap from strings to any
The metadata associated with the message.
processedboolean
Whether the message has been processed.
rolestring

Customizable role of the sender of the message (e.g., “john”, “sales_agent”).

token_countinteger
Deprecated
updated_atstring
Deprecated
uuidstring
The unique identifier of the message.

Errors

404
Not Found Error
500
Internal Server Error