SP.Web.getCatalog Method (sp.js)
Gets the list template gallery, site template gallery, or Web Part gallery for the Web site.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Web.getCatalog()
Parameters
typeCatalog
Type: SP.ListTemplateTypeThe type of the gallery.
Return value
Type: SP.List
The gallery of the list template, site template, or Web Part.
Remarks
This method returns null if there is no gallery with the specified type or typeCatalog is not a valid SP.ListTemplateType enumeration value.
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/getCatalog(typeCatalog)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/getCatalog(typeCatalog)
Resource parameters
- typeCatalog