Skip to content

feat(api): add POST /memory/pin and POST /memory/importance endpoints#666

Merged
ajianaz merged 1 commit into
developfrom
feat/memory-pin-importance
Jul 14, 2026
Merged

feat(api): add POST /memory/pin and POST /memory/importance endpoints#666
ajianaz merged 1 commit into
developfrom
feat/memory-pin-importance

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Add RESTful endpoints for pinning/unpinning and setting importance on individual memories (#660).

POST /memory/pin { id, pinned: bool } - pin or unpin, returns updated memory
POST /memory/importance { id, importance: float } - set importance 0.0-1.0, returns updated memory

Changes: Store::set_importance with range validation, MemoryPinRequest/MemoryImportanceRequest types, UUID validation, 404/400 error handling.

Closes #660

println!(" DELETE /forget?tag=TAG → {{ deleted }}");
println!(" GET /memory?id=UUID → {{ memory }}");
println!(" GET /stats → {{ stats }}");
println!(" GET /memory?id=UUID -> {{ memory }}");
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

@ajianaz ajianaz force-pushed the feat/memory-pin-importance branch from de817b9 to 7783023 Compare July 14, 2026 08:30
@ajianaz ajianaz merged commit 069208d into develop Jul 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add /memory/pin and /memory/importance endpoints

2 participants