Memories
Update a memory
Updates an existing memory. Regenerates the embedding if content changes.
put/v1/projects/{project_id}/memories/{memory_id}
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/memories/{memory_id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
memory_idstring required
Example:mem_V1StGXR8Z5jdHi6B
Headers
If-Matchstring
The version the caller believes the resource holds, as an entity tag (3 or "3"). Equivalent to expected_version in the request body; * states no precondition beyond the resource existing. A mismatch is 409 VERSION_CONFLICT.
Request body
Example request
{
"tags": {
"team": "finance",
"env": "prod"
},
"metadata": {
"author": "John",
"revision": 2
},
"expected_version": 3
}Response
Memory updated
Example response
{
"id": "mem_V1StGXR8Z5jdHi6B",
"memory_store_id": "mstore_V1StGXR8Z5jdHi6B",
"content": "The customer prefers email communication over phone calls",
"source_type": "manual",
"source_id": "conv_V1StGXR8Z5jdHi6B",
"tags": {
"team": "finance",
"env": "prod"
},
"metadata": {
"author": "John",
"revision": 2
},
"superseded_by_memory_id": "mem_V1StGXR8Z5jdHi6B",
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.