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