Skip to main content

Update

Modify existing memories via the update endpoint.

Overview

The update endpoint modifies an existing memory. Only include the fields you want to change — other fields remain unchanged. Metadata updates are merged with existing values.

For complete parameter documentation, response schemas, and advanced options, see the Memories API Reference.

Endpoint

Endpoint
PATCH /v1/memories/:id

Example

const updated = await client.memories.update('mem_abc123', {
  content: 'User prefers dark mode with high contrast',
  metadata: {
    updated_reason: 'user_feedback',
    confidence: 0.98
  }
});
console.log('Updated:', updated.id);