Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 761 Bytes

File metadata and controls

22 lines (19 loc) · 761 Bytes

#Add-SPOContentTypeToList Adds a new content type to a list ##Syntax

Add-SPOContentTypeToList -List <ListPipeBind> -ContentType <ContentTypePipeBind> [-DefaultContentType [<SwitchParameter>]] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
ContentType ContentTypePipeBind True
DefaultContentType SwitchParameter False
List ListPipeBind True
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Add-SPOContentTypeToList -List "Documents" -ContentType "Project Document" -DefaultContentType

This will add an existing content type to a list and sets it as the default content type