SP.Web.applyTheme Method (sp.js)

Applies the theme specified by the contents of each of the files specified in the arguments to the site.

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

SP.Web.applyTheme(colorPaletteUrl, fontSchemeUrl, backgroundImageUrl, shareGenerated)

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/applyTheme(colorPaletteUrl,fontSchemeUrl,backgroundImageUrl,shareGenerated)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/applyTheme(colorPaletteUrl,fontSchemeUrl,backgroundImageUrl,shareGenerated)

Resource parameters

  • colorPaletteUrl

  • fontSchemeUrl

  • backgroundImageUrl

  • shareGenerated

Parameters

  • colorPaletteUrl

  • fontSchemeUrl

  • backgroundImageUrl

  • shareGenerated