Hi @Khushboo Kumari
Here is an example of the request to create a new folder in the signed-in user's OneDrive root folder.
POST /me/drive/root/children
Content-Type: application/json
{
"name": "New Folder",
"folder": { },
"@microsoft.graph.conflictBehavior": "rename"
}
After the creation is successful, the id and webURL of the newly created folder will be returned in the response body.
Or you can also get the webURL based on the id of the folder:
https://graph.microsoft.com/v1.0/me/drive/items/{folder id}?$select=id,name,webURL
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.