contentType resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents a content type in SharePoint. Content types allow you to define a set of columns that must be present on every listItem in a list.

Properties

Property Type Description
associatedHubsUrls String collection List of canonical URLs for hub sites with which this content type is associated to. This contains all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites.
documentSet documentSet Document Set metadata.
documentTemplate documentSetContent Document template metadata. To make sure that documents have consistent content across a site and its subsites, you can associate a Word, Excel, or PowerPoint template with a site content type.
description String The descriptive text for the item.
group String The name of the group this content type belongs to. Helps organize related content types.
hidden Boolean Indicates whether the content type is hidden in the list's 'New' menu.
id String The unique identifier of the content type.
inheritedFrom itemReference If this content type is inherited from another scope (like a site), provides a reference to the item where the content type is defined.
isBuiltIn Boolean Specifies if a content type is a built-in content type.
name String The name of the content type.
order contentTypeOrder Specifies the order in which the content type appears in the selection UI.
parentId String The unique identifier of the content type.
propagateChanges Boolean If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type.
readOnly Boolean If true, the content type can't be modified unless this value is first set to false.
sealed Boolean If true, the content type can't be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types.

Relationships

Relationship Type Description
base contentType Parent contentType from which this content type is derived.
baseTypes contentType collection The collection of content types that are ancestors of this content type.
columnLinks columnLink collection The collection of columns that are required by this content type.
columnPositions columnDefinition collection Column order information in a content type.
columns columnDefinition collection The collection of column definitions for this content type.

For more information, see Introduction to content types and content type publishing.

JSON representation

The following JSON representation shows the resource type.

{
  "associatedHubsUrls" : ["string"],
  "base": { "@type": "microsoft.graph.contentType" },
  "baseTypes" : [{ "@type": "microsoft.graph.contentType" }],
  "columns" : [{ "@type": "microsoft.graph.columnDefinition" }],
  "columnLinks": [{ "@type": "microsoft.graph.columnLink" }],
  "columnPositions" : [{ "@type": "microsoft.graph.columnDefinition" }],
  "description": "String",
  "documentSet" : { "@type": "microsoft.graph.documentSet" },
  "documentTemplate" : { "@type": "microsoft.graph.documentSetContent" },
  "group": "String",
  "hidden": "Boolean",
  "id": "String",
  "inheritedFrom": { "@type": "microsoft.graph.itemReference" },
  "isBuiltIn" : "Boolean",
  "name": "String",
  "order": { "@type": "microsoft.graph.contentTypeOrder" },
  "parentId": "String",
  "propagateChanges" : "Boolean",
  "readOnly": "Boolean",
  "sealed": "Boolean"
}