ContentType

Configure a SharePoint content type.


Access

Access the ContentType API using the getByName() or getById() method of the ContentTypes API.

Examples

down(engineer) {
// Delete content type from web
engineer.web.contentTypes.getByName('My Content Type').delete();

// Delete content type from list
engineer.web.lists.getByTitle('My List').contentTypes.getByName('My Content Type').delete();
}

Properties

Provides access to the FieldLinks API.


Methods

delete()

Delete the content type.

Examples

down(engineer) {
// Delete content type from web
engineer.web.contentTypes.getByName('My Content Type').delete();
}