SP.WebTemplate.isRootWebOnly property (sp.js)
Gets a value that specifies whether the site definition configuration or site template can only be applied to the top-level site in the site collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.WebTemplate.get_isRootWebOnly ()
Return value
Type: Boolean
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/GetAvailableWebTemplates(languageid,includecrosslanguageincludecrosslanguage})/getbyname(templatename/isRootWebOnly
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/GetAvailableWebTemplates(languageid,includecrosslanguageincludecrosslanguage})/getbyname(templatename/isRootWebOnly
GET syntax
GET http://<sitecollection>/<site>/_api/web/GetAvailableWebTemplates(languageid,includecrosslanguageincludecrosslanguage})/getbyname(templatename/isRootWebOnly