Memory

Updates the metadata of a message.

PATCH
Updates the metadata of a message.

Path parameters

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

Request

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

Response

This endpoint returns an object
content
stringOptional
The content of the message.
created_at
stringOptional
The timestamp of when the message was created.
metadata
map from strings to anyOptional
The metadata associated with the message.
role
stringOptional
The role of the sender of the message (e.g., "user", "assistant").
role_type
enumOptional
The type of the role (e.g., "user", "system").
token_count
integerOptional
The number of tokens in the message.
updated_at
stringOptional
The timestamp of when the message was last updated.
uuid
stringOptional
The unique identifier of the message.

Errors

PATCH
1curl -X PATCH https://api.getzep.com/api/v2/sessions/sessionId/messages/messageUUID \
2 -H "Content-Type: application/json" \
3 -d '{
4 "metadata": {}
5}'
1{
2 "content": "content",
3 "created_at": "created_at",
4 "metadata": {
5 "metadata": {
6 "key": "value"
7 }
8 },
9 "role": "role",
10 "role_type": "norole",
11 "token_count": 1,
12 "updated_at": "updated_at",
13 "uuid": "uuid"
14}