Adding folders to Sharepoint Site

Martin Dodd 10 Reputation points
2023-10-25T09:25:55.08+00:00

Steps taken to reproduce error:

  1. Get the site id:

https://graph.microsoft.com/v1.0/sites/ausreman.sharepoint.com:/sites/<SITENAME>

  1. Using this site name, we obtain the drive id of interest:

https://graph.microsoft.com/v1.0/sites/{{hostname}}:/sites/<SITENAME>:/drives

  1. From the site id and drive id we then attempt to add a new folder:
    https://graph.microsoft.com/v1.0/sites/{{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