Endpoint
Request body
The unique identifier of the memory to update
New memory content. If provided, the document is re-chunked and re-embedded.
New category. One of:
preferences, decisions, patterns, context, learnings, general, gate-rules, guidelinesNew tags array. Replaces existing tags entirely.
New source reference
New priority value (affects scoring). Range: 0.1 to 2.0
Whether to pin this memory (always included in search results)
Response
Whether the update succeeded
Whether any fields were actually changed
The memory document ID
Example
Update content
Update tags and priority
Pin a memory
- Always included in search results (even with low relevance scores)
- Get a 1.1x score boost
- Useful for critical guidelines or preferences
Behavior
- Content updates: If you change
content, the document is re-chunked and all embeddings are regenerated - Metadata updates: Changes to
category,tags,source_ref,priority, oris_pinnedare applied immediately without re-embedding - Partial updates: You only need to include fields you want to change
- Timestamp: The
updated_attimestamp is automatically updated
Error responses
Error message if the request fails
400- Bad request (missing memory_id or invalid parameters)401- Unauthorized (invalid or missing API key)404- Memory not found or access denied500- Internal server error
Related endpoints
- Get memory - Retrieve current memory state before updating
- Add memory - Create a new memory
- Forget memory - Delete memory