v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-044334120.9 KB
Sessions & Agents
Memory Operations

Edit Memory

Update one memory in the active agent's namespace (Session-based).

Requires:

  • X-Session-Token: {session_token}

The session must be for the specified agent_id.

patch/api/v2/agents/{agent_id}/memories/{memory_id}

Path parameters

agent_idstring required
memory_idstring required

Headers

x-session-tokenstring nullable
X-Api-Keystring nullable

Cookies

memanto_session_tokenstring nullable

Request body

titlestring nullable
contentstring nullable
type'fact' | 'preference' | 'goal' | 'decision' | 'artifact' | 'learning' | 'event' | 'instruction' | 'relationship' | 'context' | 'observation' | 'commitment' | 'error' nullable
confidencenumber nullable
tagsstring[] nullable
sourcestring nullable

Response

Successful Response

{"stackTrail":"paths:/api/v2/agents/{agent_id}/memories/{memory_id}:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}