SP.Web.configuration property (sp.js)
Gets either the identifier (ID) of the site definition configuration that was used to create the site, or the ID of the site definition configuration from which the site template used to create the site was derived.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value =SP.Web.get_configuration()
Return value
A 16-bit integer that indicates the ID of the configuration. This value corresponds to the ID attribute of the Configuration element in Collaborative Application Markup Language (CAML).
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/configuration
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/configuration
GET syntax
GET http://<sitecollection>/<site>/_api/web/configuration