Jan 16 2017 04:05 AM
Is there (or does anyone at Microsoft know if there will be) support for creating Document Sets using the 2013 version of the REST API?
I've successfully used the 2010 /_vti_bin/listdata.svc/ service, but for future proofing, wonder if I should be moving on to something like like the /_api/web/folders endpoints.
Thanks,
Ross
Jan 16 2017 04:16 AM
You may use following end point which allows POST request.
"<app web url>/_api/SP.AppContextSite(@target)/web /getfolderbyserverrelativeurl('/Shared Documents')/folders ?@target='<host web url>'"
If you finding more information on this, following link would be beneficial.
Jan 16 2017 05:44 AM
Hi Kushan, thanks for the reply. Using the /_api/Web/Folders/add I can create a standard folder. I can then use the endpoint /_api/Web/Lists/GetByTitle to modify the ContentTypeId to that of the Document set. The last piece of the puzzle seems to either be setting the ProgId to SharePoint.DocumentSet, or HTML_x0020_File_x0020_Type to SharePoint.DocumentSet, however both of these properties seems to resist being updated by REST.
Jan 17 2017 12:06 AM
SolutionJan 17 2017 12:06 AM
Solution