Skip to main content
PATCH
Edit a memory
Use this endpoint when a user fixes a memory directly, for example in a memory settings screen. EDN never overwrites a memory: it saves the new text as a new version and keeps the old one in the history.

What EDN does

  1. Saves the new text as a new USER_CONFIRMED memory with a new ID.
  2. Marks the old memory as replaced, so SIPs stop using it.
  3. Keeps the old version in the memory’s history.

Required headers

Request

Path parameters

Body

Response

200 OK
Returns the new version of the memory, with the same fields as Get a memory. The most useful ones:

Important behavior

  • The edited memory gets a new ID. The old ID still works with Get a memory and history.
  • Only current versions can be edited. Editing a replaced or deleted version returns 404.
  • USER_STATED, USER_CONFIRMED, AI_INFERRED and AI_GENERATED memories can be edited. Documents (DOCUMENT_VERIFIED) and conversation turns (ROUND) return 409.

Errors

See Error handling.

Authorizations

Authorization
string
header
required

Your EDN API key, sent as Bearer YOUR_API_KEY. Create keys in the Console.

Path Parameters

record_id
string
required

The ID of the memory (the record_id returned when it was saved).

Body

application/json
content
string
required

The corrected text for this memory, up to 1,000 characters. EDN saves it as a new USER_CONFIRMED version and keeps the old one in the record's history.

Required string length: 1 - 1000
Example:

"Tom manages the website project."

Response

Successful Response

content_summary
string
required

What the memory says, as used in the SIP.

created_at
string
required

When this version was created (ISO 8601, UTC).

domain
enum<string>
required

The memory's category.

Available options:
technical,
professional-context,
communication-style,
factual
full_text
string
required

The memory's complete text. For a saved conversation turn this is the full exchange; otherwise it matches content_summary.

id
string
required

The memory's ID (same as record_id elsewhere).

provenance
enum<string>
required

Where the memory came from.

Available options:
USER_STATED,
USER_CONFIRMED,
DOCUMENT_VERIFIED,
AI_INFERRED,
AI_GENERATED,
SYSTEM_DERIVED,
ROUND
status
enum<string>
required

current: the latest version, used in SIPs. replaced: a newer version (an edit, correction or confirmation) took its place. deleted: removed (only seen in history).

Available options:
current,
replaced,
deleted
document_date
string | null

When the information was recorded (ISO 8601, UTC).

event_date
string | null

When the event it describes happened, if known (ISO 8601, UTC).

project_id
string | null

The project it belongs to, or null for general memory.

session_id
string | null

The session it was saved in.

source_id
string | null

The project document it came from, or null if not from a document.

superseded_by
string | null

The ID of the newer version that replaced this one, or null.

supersedes
string | null

The ID of the earlier version this one replaced, or null.