I want to create a folder inside "Communications" document library in below site using rest api.
Can you please assist on how to do that?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You need to use the
Folders endpoint something like below:
_spPageContextInfo.siteAbsoluteUrl + "/_api/Web/Folders/add('Communications/NewFolderName')"
Note: You need to pass the
ServerRelativeUrl inside the
Official documentation: Working with folders by using REST.