Supermemory icon

Supermemory

Interact with the Supermemory API

Memory → Update

AI-generated

Summary

Update a memory entry by ID or exact content match within a container, replacing its content and optionally modifying metadata, forget after, forget reason, or temporal context.

Inputs

  • containerTag (required) — The space/container identifier to scope the operation
  • identifyBy — How to identify the memory to update
  • memoryId — The memory entry identifier (e.g. mem_abc123). Required when identifyBy is 'id'.
  • existingContent — Exact content match of the existing memory. Required when identifyBy is 'content'.
  • newContent (required) — The new content that will replace the existing memory
  • additionalFields — Optional fields to update

Output shape

object

The updated memory object as returned by the Supermemory API.

Examples

Example 1: Update a memory by its ID

Set containerTag='user_123', identifyBy='id', memoryId='mem_abc123', newContent='Updated preference: dark mode'

Example 2: Update a memory by content match and schedule auto‑forgetting

Set containerTag='project_xyz', identifyBy='content', existingContent='Likes coffee', newContent='Prefers tea', additionalFields.forgetAfter='2025-12-31T00:00:00Z'

Links

Discussion