Skip to main content
PATCH
/
memories
/
{memoryId}
Update Memory
curl --request PATCH \
  --url https://api.tess.im/memories/{memoryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "memory": "<string>",
  "collection_id": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.tess.im/llms.txt

Use this file to discover all available pages before exploring further.

Code Examples

curl --request PATCH \
  --url 'https://api.tess.im/memories/{memoryId}' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "memory": "Updated memory content",
    "collection_id": 1
  }'

Path Parameters

memoryId
integer
required
ID of the memory to update

Request Body

memory
string
required
New memory content
collection_id
integer
Collection ID to associate the memory
{
  "memory": "Updated memory content",
  "collection_id": 1
}

Response

{
"message": "Memory updated successfully!",
"memory": {
  "id": 10,
  "user_id": 1,
  "memory": "Updated memory content",
  "credits": 0,
  "collection_id": 1,
  "collection": {
    "id": 1,
    "user_id": 1,
    "name": "default"
  }
}
}

Response Codes

CodeDescription
200Success
404Memory not found
500Server error