SP.Site.allowRevertFromTemplate property (sp.js)

Gets or sets a value that specifies whether this site collection can be reverted to its base template.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Site.get_allowRevertFromTemplate ()
var value = SP.Site.set_allowRevertFromTemplate ()

Return value

Type: Boolean

Specifies whether this site collection can be reverted to its base template. If true, this site collection can be reverted to its base template; otherwise, this site collection cannot be reverted to its base template.

Remarks

See Web.AllowRevertFromTemplateForCurrentUser, which is the method for determining the behavior for the current user. The default, if not disabled on the Web application, is false.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/site/allowRevertFromTemplate

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/site/allowRevertFromTemplate

GET syntax

GET http://<sitecollection>/<site>/_api/site/allowRevertFromTemplate