Skip to main content
POST
Replace Memory

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Workspace-Id
string | null

The workspace ID

Path Parameters

memory_id
string
required

Body

application/json

Schema for replacing a memory.

memory
string
required

The new memory content to replace the existing one.

user_id
string | null

The user ID who owns the memory.

topics
string[] | null

New topics for the memory.

metadata
Metadata · object | null

New metadata for the memory.

Response

Successful Response

Schema for memory replacement response.

memory_id
string
required

ID of the replaced memory.

message
string
required

Success message.

old_memory
MemoryResponse · object
required

The old memory details.

new_memory
MemoryResponse · object
required

The new memory details.