Skip to content

Commit 3fc0222

Browse files
BenGWeeksclaude
andauthored
fix: correct SharePoint file download endpoint path (#139)
Fixes #137 - download-onedrive-file-content was returning 404 for SharePoint files Root cause: The endpoint path pattern included an incorrect `/children/{driveItem-id1}` segment that doesn't match the Microsoft Graph API specification. Changed from: /drives/{drive-id}/items/{driveItem-id}/children/{driveItem-id1}/content To correct path: /drives/{drive-id}/items/{driveItem-id}/content Tested with SharePoint Internal site - file downloads now work correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent a842317 commit 3fc0222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoints.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"scopes": ["Files.Read"]
199199
},
200200
{
201-
"pathPattern": "/drives/{drive-id}/items/{driveItem-id}/children/{driveItem-id1}/content",
201+
"pathPattern": "/drives/{drive-id}/items/{driveItem-id}/content",
202202
"method": "get",
203203
"toolName": "download-onedrive-file-content",
204204
"scopes": ["Files.Read"]

0 commit comments

Comments
 (0)