SP.Site.getCatalog Method (sp.js)

Specifies the list template gallery, site template gallery, Web Part gallery, master page gallery, or other galleries from the site collection, including custom galleries that are defined by users.

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

SP.Site.getCatalog()

Parameters

  • typeCatalog
    Type: Number

    Specifies the list template type for the gallery.

Return value

Type: SP.List

Remarks

This method requires permissions to the top-level site of the site collection, which is where the galleries are located.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/site/getCatalog(typeCatalog)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/site/getCatalog(typeCatalog)

Resource parameters

  • typeCatalog