SP.ContentType object
Represents a website, or list, content type.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var object = new SP.ContentType()
Members
The ContentType object has the following members.
Constructor
The ContentType object has the following constructor.
Constructor |
Description |
---|---|
Initializes a new instance of the SP.ContentType object. |
Methods
The ContentType object has the following methods.
Method |
Description |
---|---|
Deletes the content type. |
|
Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type. |
Properties
The ContentType object has the following properties.
Property |
Description |
---|---|
Gets or sets a description of the content type. |
|
Gets or sets a value that specifies the name of a custom display form template to use for list items that have been assigned the content type. |
|
Gets or sets a value that specifies the URL of a custom display form to use for list items that have been assigned the content type. |
|
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. |
|
Gets a value that specifies the URL of the document template assigned to the content type. |
|
Gets or sets a value that specifies the name of a custom edit form template to use for list items that have been assigned the content type. |
|
Gets or sets a value that specifies the URL of a custom edit form to use for list items that have been assigned the content type. |
|
Gets the column (also known as field) references in the content type. |
|
Gets a value that specifies the collection of fields for the content type. |
|
Gets or sets a value that specifies the content type group for the content type. |
|
Gets or sets a value that specifies whether the content type is unavailable for creation or usage directly from a user interface. |
|
Gets a value that specifies an identifier for the content type. |
|
Gets or sets the JSLink for the content type custom form template. Note The JSLink property is not supported on Survey or Events lists. A SharePoint calendar is an Events list. |
|
Gets or sets a value that specifies the name of the content type. |
|
Gets or sets a value that specifies the name of the content type. |
|
Gets or sets a value that specifies the name of the content type. |
|
Gets the parent content type of the content type. |
|
Gets or sets a value that specifies whether changes to the content type properties are denied. |
|
Gets a value that specifies the XML Schema representing the content type. |
|
Gets a non-localized version of the XML schema that defines the content type. |
|
Gets a value that specifies a server-relative path to the content type scope of the content type. |
|
Gets or sets whether the content type can be modified. |
|
A string representation of the value of the Id. |
|
Gets a value that specifies the collection of workflow associations for the content type. |
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)
HTTP requests
This resource supports the following HTTP commands:
DELETE syntax
DELETE http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)
MERGE syntax
MERGE http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)
PUT syntax
PUT http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)