Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add `itemWithPath` to OneDrive items

Open
#908 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start by locating the TypeScript SDK entry point for DriveItem requests and compare its structure with the linked Microsoft Graph API example and C# request-builder extension. Implement the itemWithPath flow so the provided createUploadSession example can target a path, then verify that this request is generated and usable as shown.

Written by the indexing model from the issue text.

Description

status:waiting-for-triage ToTriage type:feature
Is your feature request related to a problem? Please describe the problem.

The OneDrive APIs support getting an item with a path instead of an ID. From https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http:

GET /drives/{drive-id}/root:/{item-path}

Other SDKs implement this as a custom request builder, for example in C#:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/609cef23d74a36afc7112d48e766b5d417224515/src/Microsoft.Graph/Extensions/DriveItemRequestBuilderExtensions.cs#L45

This SDK should implement something similar.

Describe the solution you'd like.
const uploadSession = await graphClient.drives
  .byDriveId(myDrive.id)
  .items.byDriveItemId('root')
  .itemWithPath('some/path.txt')
  .createUploadSession
  .post(uploadSessionBody);
Additional context?

No response

Dominant language
TypeScript
Stars
44
Forks
7
Avg merge
12h 40m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-typescript

All issues in microsoftgraph/msgraph-sdk-typescript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.