SP.Site.openWebById Method (sp.js)
Returns the site with the specified GUID.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Site.openWebById()
Parameters
gWebId
Type: SP.GuidA GUID that specifies which site to return.
Return value
Type: SP.Web
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/site/openWebById(gWebId)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/site/openWebById(gWebId)
Resource parameters
- gWebId