-
Hi guys, I need to implement some Site design manipulation code in one of our projects that already uses PnP Core, but I haven't been able to find anything within the current documentation/sources that seems to use that API at all (apart from PnPJS). Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have found that I can call the REST API using the ApiRequest mechanism; var apiRequest = new ApiRequest( HttpMethod.Post, ApiRequestType.SPORest, "_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.ApplySiteDesign", rqstBody ); And although that call "seems" to work (returns a 200 status), it doesn't apply the site design, which makes me wonder whether the Site Design API doesn't work under app-only? |
Beta Was this translation helpful? Give feedback.
@stevedDev : we do not yet have support for working with site designs in Core SDK, using the custom API route (https://pnp.github.io/pnpcore/using-the-sdk/basics-customapirequests.html) is a good path forward. We also welcome PRs bringing site design support :-)