SP.ContentType.parent property (sp.js)

Gets the parent content type of the content type.

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

var value = SP.ContentType.get_parent ()

Return value

Type: SP.ContentType

REST resource endpoint

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

GET syntax

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