SP.Site.createPreviewSPSite Method (sp.js)
Creates a temporary evaluation SPSite for this SPSite, for the purposes of determining whether an upgrade is likely to be successful.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Site.createPreviewSPSite()
Parameters
upgrade
If true, the evaluation site collection MUST be upgraded when it is created. If false, the evaluation site collection MUST NOT be upgraded when it is created.sendemail
If true, a notification email MUST be sent to the requestor and the site collection administrators at the completion of the creation of the evaluation site collection. If false, such notification MUST NOT be sent.
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/site/createPreviewSPSite(upgrade,sendemail)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/site/createPreviewSPSite(upgrade,sendemail)
Resource parameters
upgrade
sendemail