Skip to main content
POST
/
api
/
v2
/
agents
/
{agent_id}
/
supersede
/
{old_memory_id}
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/supersede/mem_old123" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -H "Content-Type: application/json" \
  -d '{"new_content":"User is now Director of Finance","reason":"Promotion announced"}'
{
  "old_memory_id": "mem_old123",
  "new_memory_id": "mem_new456",
  "status": "superseded"
}

Overview

Replace an old memory with new content.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}

Path Parameters

agent_id
string
required
Agent identifier.
old_memory_id
string
required
Memory to replace.

Body Parameters

new_content
string
required
Replacement content.
reason
string
Reason for replacement.
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/supersede/mem_old123" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -H "Content-Type: application/json" \
  -d '{"new_content":"User is now Director of Finance","reason":"Promotion announced"}'
{
  "old_memory_id": "mem_old123",
  "new_memory_id": "mem_new456",
  "status": "superseded"
}

Response Fields

old_memory_id
string
Replaced memory ID.
new_memory_id
string
New memory ID.
status
string
Operation status.