Skip to main content
PATCH
https://api.memcontext.in
/
api
/
memories
/
{id}
Update a memory
curl --request PATCH \
  --url https://api.memcontext.in/api/memories/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "content": "<string>",
  "category": "preference",
  "project": "<string>"
}
'
{
  "success": true,
  "memory": {
    "id": "<string>",
    "content": "<string>",
    "category": "<string>",
    "project": "<string>"
  },
  "superseded": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "relatedTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "error": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Path Parameters

id
string<uuid>
required

Memory UUID.

Body

application/json
content
string

New content. If changed, triggers re-classification against similar memories.

Maximum string length: 10000
category
enum<string>
  • preference - User likes or dislikes (e.g. "prefers dark mode").
  • fact - Objective information (e.g. "uses macOS").
  • decision - Choices made (e.g. "chose PostgreSQL for DB").
  • context - Background information (e.g. "working on e-commerce app").
Available options:
preference,
fact,
decision,
context
project
string
Maximum string length: 100

Response

Update result.

success
boolean
required
memory
object

Returned when only metadata was updated.

superseded
string<uuid>

ID of superseded memory (when content update triggers supersession).

ID of related memory (when content update creates an extend/similar relation).

error
string

Error message when success is false.