Add-SPOContentType

Adds a new content type to an existing List.

Add-SPOContentType -Web <SPOWebPipeBind> -List <SPOListPipeBind> -ContentType <SPOContentTypePipeBind>

Parameters

1

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site containing the List to create the new Content Type within.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

ListTrueSPOListPipeBind

Specifies the List to add the Content Type to.

The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID.

ContentTypeTrueSPOContentTypePipeBind

Sets a value that specifies the Content Type that the new Content Type will inherit from. The type must be a valid name, Content Type ID, Microsoft.SharePoint.Client.ContentType object or SPOContentType object.

Detailed Description

Adds a new content type to an existing List.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE------------------

PS C:\> Add-SPOContentType -Web "/" -List "Documents" -ContentType "My Content Type"

This example adds a content type with the name of My Content Type to the Documents list.