Adding folders to Sharepoint Site

Martin Dodd 10 Reputation points

Steps taken to reproduce error:

  1. Get the site id:<SITENAME>

  1. Using this site name, we obtain the drive id of interest:{{hostname}}:/sites/<SITENAME>:/drives

  1. From the site id and drive id we then attempt to add a new folder:{{site-id}}/drives/{{drive-id-po}}/root/children

with the POST body:

  "name": <FOLDERNAEM>,
  "folder": { },
  "@microsoft.graph.conflictBehavior": "rename"

This all use to work, but as of 24/10/2023 5:49AM (Sydney Time) the above stopped working. Does anybody have any thoughts?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,103 questions
{count} vote