You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Correct V2 move endpoint to use entity ID in URL path
The V2 move endpoint was incorrectly accepting an identifier in the request
body, violating V2 API design principles. Fixed to use entity ID in the URL
path for consistency with other V2 endpoints.
Changes:
- Add MoveEntityRequestV2 schema with only destination_path field
- Update move endpoint from POST /knowledge/move to PUT /knowledge/entities/{entity_id}/move
- Entity ID now in URL path, not request body
- Updated endpoint implementation to fetch entity by ID first
- Updated test to use new endpoint structure
Before:
POST /v2/projects/{project_id}/knowledge/move
Body: { "identifier": "...", "destination_path": "..." }
After:
PUT /v2/projects/{project_id}/knowledge/entities/{entity_id}/move
Body: { "destination_path": "..." }
All 180 V2 API tests passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joe P <joe@basicmemory.com>
0 commit comments