curl -X PATCH \
"http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
-H "X-Session-Token: your_session_token" \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers light mode (updated)",
"confidence": 0.99
}'
{
"agent_id": "my-agent",
"session_id": "sess_abc123",
"namespace": "memanto_agent_my-agent",
"memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
"status": "updated",
"action": "updated",
"updated_fields": [
"content",
"confidence"
]
}
{
"detail": "Provide at least one field to update."
}
{
"detail": "Memory 'b7c3cf31-e537-49f1-abc4-c50ac6adeac5' was not found."
}
{
"detail": "Missing session token. Use X-Session-Token header."
}
Data
Edit Memory
Update fields on an existing memory for the active agent.
PATCH
/
api
/
v2
/
agents
/
{agent_id}
/
memories
/
{memory_id}
curl -X PATCH \
"http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
-H "X-Session-Token: your_session_token" \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers light mode (updated)",
"confidence": 0.99
}'
{
"agent_id": "my-agent",
"session_id": "sess_abc123",
"namespace": "memanto_agent_my-agent",
"memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
"status": "updated",
"action": "updated",
"updated_fields": [
"content",
"confidence"
]
}
{
"detail": "Provide at least one field to update."
}
{
"detail": "Memory 'b7c3cf31-e537-49f1-abc4-c50ac6adeac5' was not found."
}
{
"detail": "Missing session token. Use X-Session-Token header."
}
Overview
Updates an existing memory using a delete-and-recreate pattern on Moorcheh. The memory retains its originalid and created_at timestamp, but updates its updated_at timestamp. You must provide at least one field to update.
Authentication
API clients do not send an API key orAuthorization header.
Session token from Activate Agent. Must match
agent_id.Path Parameters
Body
List of strings representing the new tags. Same rules as on remember: up to 20 tags of 1–64 characters, with no commas or line breaks.
curl -X PATCH \
"http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
-H "X-Session-Token: your_session_token" \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers light mode (updated)",
"confidence": 0.99
}'
{
"agent_id": "my-agent",
"session_id": "sess_abc123",
"namespace": "memanto_agent_my-agent",
"memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
"status": "updated",
"action": "updated",
"updated_fields": [
"content",
"confidence"
]
}
{
"detail": "Provide at least one field to update."
}
{
"detail": "Memory 'b7c3cf31-e537-49f1-abc4-c50ac6adeac5' was not found."
}
{
"detail": "Missing session token. Use X-Session-Token header."
}
Next Steps
- Recall to find a memory’s ID before editing it
- Delete Memory to remove a memory