0

I tried to use queries like

GET https://graph.microsoft.com/v1.0/sites/{siteID}/drives/ and I get all the document libraries/drives i have inside that site.

But when I try to do a POST at https://graph.microsoft.com/v1.0/sites/{siteID}/drives/ with request Body{ "name": "folderName", "folder": { "childCount": 0 }, "@microsoft.graph.conflictBehavior": "rename" } . I use this requestBody when i want to create a folder inside a drive with query https://graph.microsoft.com/v1.0/sites/{siteID}/drives/{driveId}/root/children and it works perfectly

i get Bad Request - 400

  • According to this answer https://stackoverflow.com/a/74299014/10263175, to create a folder in a library, you must use a PATCH verb, and not POST. Can you try again? – jleture Jul 19 '23 at 18:05

0 Answers0