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
Could I confirm that the msgraph-sdk has no support for this at the moment? I've had a bit of a poke around, and it seems like there's no urlTemplate like this and no mechanism to set something like item-path.
James Haggerty (@wryun) to minimize SDK size, this version of the SDK provides access to resources via the root path of the resource in cases where there are multiple URLs to perform the same operation e.g. an upload session can be created via multiple endpoints but the SDK supports accessing the root of the resource i.e. /drives/{driveId}/items/{itemId}/createUploadSession
You should be able to create the upload session via:
Activity
Ndiritu commentedon Jan 12, 2023
James Haggerty (@wryun) to minimize SDK size, this version of the SDK provides access to resources via the root path of the resource in cases where there are multiple URLs to perform the same operation e.g. an upload session can be created via multiple endpoints but the SDK supports accessing the root of the resource i.e.
/drives/{driveId}/items/{itemId}/createUploadSessionYou should be able to create the upload session via:
Ndiritu commentedon Jan 12, 2023
Shem Ogumbe (@shemogumbe) Vincent Biret (@baywet) Isaac Vargas (@isvargasmsft) should we add a disclaimer on the READMEs that not all API paths will be supported by the request builders & what fallback options we will provide if any? We had a similar issue in PHP.
baywet commentedon Jan 12, 2023
Thanks for flagging this. The workarounds for those sort of situations are:
none are great from a user experience perspective.
Ndiritu commentedon Jan 13, 2023
Do we currently support workaround 2?
baywet commentedon Jan 13, 2023
We should for that scenario specifically.
The way it's done in dotnet and Go is we have overload constructors that either accept the path parameters (fluent API passing things along) or the raw URL for this purpose.
https://github.com/microsoftgraph/msgraph-sdk-go/blob/767c30e984b3fec03e6e5ca11b4c68c6db935249/admin/admin_request_builder.go#L43
https://github.com/microsoftgraph/msgraph-sdk-go/blob/767c30e984b3fec03e6e5ca11b4c68c6db935249/admin/admin_request_builder.go#L56
isvargasmsft commentedon Jan 24, 2023
Samwel K. (@samwelkanda) for visibility.
samwelkanda commentedon Nov 2, 2023
Going with the convention of accessing resources from their root, the above can be done by issuing the request:
samwelkanda commentedon Nov 2, 2023
Closing as not a blocking issue.