I am making a Power automate flow where I am creating a subsite. I m able to do that successfully with below link: https://www.annajhaveri.com/sharepoint/create-a-sharepoint-online-subsite-from-power-automate-flow
Now I want to create a folder in those subsite. I am using send HTTP request to SharePoint action and using post method.
For that below are the inputs i have provided:
Site Address - Site where I have created a subsite.
Method - Post
Uri - /_api/web/folders
Headers -
Accept
application/json;odata=verbose
Content-Type
application/json;odata=verbose
Body -
{
"__metadata": { "type": "SP.Folder" },
"ServerRelativeUrl":"ServerRelativeURL(this is taken from parse JSON output)/testFolder"
}
For this input i am getting forbidden error. What am i doing wrong?
I have site Admin access to the sharepoint site.
ServerRelativeUrl
parameter?test56
your subsite name? Generally, you can create a folder "inside" a document library. So, you will have to use the ServerRelativeUrl including document library URL NOT just subsite URL.