Gets hub site data for the current web.

HTTP request

GET /_api/web/HubSiteData

URI parameters

Name In Required Type Description
forceRefresh query False boolean Default value is false. When false, the data is returned from the server's cache. When true, the cache is refreshed with the latest updates and then returned. Use this if you just made changes and need to see those changes right away.

Request headers

Header Value
Accept application/json;odata=verbose
Content-Type application/json;odata=verbose;charset=utf-8
x-requestdigest The appropriate digest for current site.

Request body

Do not supply a request body for this method.


Name Type Description
200 OK SPHubSiteData OK


Get hub site data for marketing web

Sample request


Sample response

Status code: 200

	"themeKey": null,
	"name": "marketing",
	"url": "",
	"logoUrl": "",
	"usesMetadataNavigation": false,
	"navigation": [
			"Id": 2006,
			"Title": "online team",
			"Url": "",
			"IsDocLib": false,
			"IsExternal": false,
			"ParentId": 1002,
			"ListTemplateType": 0,
			"Children": []

See also