PUT · Update memory

Partial update on a single memory. PUT and PATCH are equivalent.

PUT /api/memories/:id (and PATCH /api/memories/:id — equivalent)

Update one or more fields on an existing memory. All fields are optional; pass only the ones you want to change.

curl -X PUT https://www.mnueron.com/api/memories/01HQB9R3MV… \
  -H "Authorization: Bearer $MNUERON_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "tags": ["style", "js", "indentation"],
    "metadata": { "verified": true }
  }'

Body

FieldTypeNotes
contentstringIf changed, an entry is appended to metadata.history
tagsstring[]Replaces the existing tag array
namespacestringMoves the memory to a different project (creates the namespace if it doesn't exist)
metadataobjectMerged with existing metadata. To remove a key, pass it as null

Empty bodies ({}) return 400 no patchable fields supplied.

Response

The full updated memory row, same shape as the POST response.

History tracking

When content is changed, an entry is appended to metadata.history:

{
  "metadata": {
    "history": [
      { "at": 1737071000000, "prev_content_len": 42, "by_user": "...", "by_token": "..." }
    ]
  }
}

The prior text isn't stored (could be very large) — just length + actor + timestamp so an audit can correlate against application logs. For the full audit trail (including non-content edits), use GET /api/memories/:id/history.

Side effects

  • Fires the memory.updated webhook.
  • Writes a memory.update row to audit_log.
  • Counts toward the 60/min rate limit per token.
Last updated 2026-05-24edit