Get or Update or delete a memory.
Python
# To use the Python SDK, install the package: # pip install mem0ai from mem0 import MemoryClient client = MemoryClient(api_key="your_api_key", org_id="your_org_id", project_id="your_project_id") # Update a memory memory_id = "<memory_id>" client.update( memory_id=memory_id, text="Your updated memory message here", metadata={"category": "example"} )
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "text": "<string>", "user_id": "<string>", "agent_id": "<string>", "app_id": "<string>", "run_id": "<string>", "hash": "<string>", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
The unique identifier of the memory to retrieve
Successfully updated memory
The response is of type object.
object
Was this page helpful?