FishMem

Update a memory

Edit a memory's content or metadata.

PUT /v1/memories/{id}

Updates the content and/or metadata of an existing memory identified by {id}.

Parameters

FieldTypeRequiredDescription
idstringyesMemory ID (path parameter), e.g. mem_…
contentstringnoNew memory text
metadataobjectnoReplacement metadata
importancenumbernoValue from 0 to 1
memory_typestringnoCanonical memory type
versionstringnoExpected current updated_at for optimistic concurrency

Request

curl -X PUT https://fishmem.com/v1/memories/mem_123 \
  -H "Authorization: Bearer fm_..." \
  -H "Idempotency-Key: alex-theme-v2" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Prefers light mode",
    "version": "2026-01-01T00:00:00.000Z"
  }'

Response

{ "id": "mem_…", "memory": "Prefers light mode", "event": "UPDATE" }

Credits

Free.

Errors

Returns the standard error shape. A missing or invalid key returns 401 with code: "INVALID_API_KEY". A stale version returns 409 with code: "VERSION_CONFLICT".

On this page