SP.Web.uiVersion property (sp.js)

Gets or sets the user interface (UI) version of the Web site.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Web.get_uiVersion ()
var value = SP.Web.set_uiVersion ()

Return value

Type: int

A number between 0 and 127.

Remarks

The UI version defines the UI elements and master pages that are used on the Web, and is used to determine compatibility with other SharePoint components.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/uiVersion

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/uiVersion

GET syntax

GET http://<sitecollection>/<site>/_api/web/uiVersion