curl -X PATCH 'https://api.memsync.ai/memories/mem_123abc' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "content": "Updated: Had an amazing conversation with Sarah about machine learning applications in healthcare. She mentioned some innovative approaches to medical imaging.", "metadata": { "location": "Stanford Medical Center", "participants": ["Sarah Johnson", "Dr. Martinez"], "updated_at": "2024-01-15T16:30:00Z" }, "category": "learning" }'
Copy
{ "memory_id": "mem_123abc", "content": "Updated: Had an amazing conversation with Sarah about machine learning applications in healthcare. She mentioned some innovative approaches to medical imaging.", "category": "learning", "memory_type": "episodic", "importance": 0.85, "metadata": { "location": "Stanford Medical Center", "participants": ["Sarah Johnson", "Dr. Martinez"], "source": "conversation", "updated_at": "2024-01-15T16:30:00Z" }, "embeddings": [0.123, -0.456, 0.789, ...], "created_at": "2024-01-15T14:30:00Z", "updated_at": "2024-01-15T16:30:00Z"}
Memory Management
Update Memory
Update an existing memory entry with new content, metadata, or category classification
PATCH
/
memories
/
{memory_id}
Copy
curl -X PATCH 'https://api.memsync.ai/memories/mem_123abc' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "content": "Updated: Had an amazing conversation with Sarah about machine learning applications in healthcare. She mentioned some innovative approaches to medical imaging.", "metadata": { "location": "Stanford Medical Center", "participants": ["Sarah Johnson", "Dr. Martinez"], "updated_at": "2024-01-15T16:30:00Z" }, "category": "learning" }'
Copy
{ "memory_id": "mem_123abc", "content": "Updated: Had an amazing conversation with Sarah about machine learning applications in healthcare. She mentioned some innovative approaches to medical imaging.", "category": "learning", "memory_type": "episodic", "importance": 0.85, "metadata": { "location": "Stanford Medical Center", "participants": ["Sarah Johnson", "Dr. Martinez"], "source": "conversation", "updated_at": "2024-01-15T16:30:00Z" }, "embeddings": [0.123, -0.456, 0.789, ...], "created_at": "2024-01-15T14:30:00Z", "updated_at": "2024-01-15T16:30:00Z"}
Updates a specific memory entry by ID. You can modify the memory content, metadata, category, or memory type.
Copy
curl -X PATCH 'https://api.memsync.ai/memories/mem_123abc' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "content": "Updated: Had an amazing conversation with Sarah about machine learning applications in healthcare. She mentioned some innovative approaches to medical imaging.", "metadata": { "location": "Stanford Medical Center", "participants": ["Sarah Johnson", "Dr. Martinez"], "updated_at": "2024-01-15T16:30:00Z" }, "category": "learning" }'