question

jacksorjacksor avatar image
0 Votes"
jacksorjacksor asked jacksorjacksor edited

Set filepath of created folder/file in OneDrive

Hi there, this is INCREDIBLY basic so please forgive my ignorance but:

How can I modify the filepath for a POST request to write a file/folder to OneDrive?

At present the below will write to the root directory of OneDrive:

{
"name": "Foo",
"folder": {}
}

However, how would I make create a folder in a path such as "Documents\Foo"?

I've just been playing around with it in Graph Explorer but can't work it out.

Thanks!

Rich

office-onedrive-client-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

emizhang-msft avatar image
0 Votes"
emizhang-msft answered

Hi @RichardJackson-9148,
I suggest you try to post this issue to OneDrive for Developer forum:

https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jacksorjacksor avatar image
0 Votes"
jacksorjacksor answered jacksorjacksor edited

Hi there,
Thank you for this - I will do so, much appreciated!
I'll put a link to my reposting in a comment when I've done so.
Rich
EDIT: post is now here: https://techcommunity.microsoft.com/t5/onedrive-developer/set-filepath-of-created-folder-file-in-onedrive/m-p/2268199#M65

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.