SP.List.documentTemplateUrl property (sp.js)

Gets or sets a value that specifies the server-relative URL of the document template for the list.

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

var value = SP.List.get_documentTemplateUrl ()
var value = SP.List.set_documentTemplateUrl ()

Return value

Type: String


It must be null if BaseType is not DocumentLibrary. It must not be empty. It must be a URL of server-relative form.

REST resource endpoint

See List resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/documentTemplateUrl

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/documentTemplateUrl