SP.ContentType.documentTemplate property (sp.js)

Gets or sets a value that specifies the file path to the document template used for a new list item that has been assigned the content type.

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

var value = SP.ContentType.get_documentTemplate ()
var value = SP.ContentType.set_documentTemplate ()

Return value

Type: String

Remarks

It must not be null. It must be either an absolute URL, a server-relative URL, or a URL relative to the content type resource folder for the content type.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/documentTemplate

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/documentTemplate

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/documentTemplate