SP.ContentType.update Method (sp.js)

Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type.

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

SP.ContentType.update()

Parameters

  • updateChildren
    Type: Boolean

    true to update content types that inherit from the content type; otherwise, false.

Return value

Undefined

REST resource endpoint

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

Resource parameters

  • updateChildren