SP.Web.getAvailableWebTemplates Method (sp.js)

Returns a collection of site templates available for the site.

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

SP.Web.getAvailableWebTemplates()

Parameters

  • lcid
    Specifies the LCID of the site templates to be retrieved.

    If the specified LCID is not a valid LCID, the server must return an empty collection.

  • doIncludeCrossLanguage
    Specifies whether to include language-neutral site templates.

Return value

Type: SP.WebTemplateCollection

A collection of the web templates.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/getAvailableWebTemplates(lcid,doIncludeCrossLanguage)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/getAvailableWebTemplates(lcid,doIncludeCrossLanguage)

Resource parameters

  • lcid

  • doIncludeCrossLanguage