Skip to main content
POST
/
api
/
v1
/
memories
/
{memory_id}
/
replace
{
  "memory_id": "<string>",
  "message": "<string>",
  "old_memory": {
    "memory_id": "<string>",
    "user_id": "<string>",
    "memory": "<string>",
    "topics": [
      "<string>"
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "metadata": {}
  },
  "new_memory": {
    "memory_id": "<string>",
    "user_id": "<string>",
    "memory": "<string>",
    "topics": [
      "<string>"
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "metadata": {}
  }
}

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
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
object
required

The old memory details.

new_memory
object
required

The new memory details.