Skip to content

New command: update content type #3613

@waldekmastykarz

Description

@waldekmastykarz

Usage

m365 spo contenttype set [options]

Description

Update existing content type

Options

Option Description
-u, --webUrl <webUrl> URL of the site where the content type to update is defined
-i, --id [id] ID of the content type to update. Specify the ID or name but not both, one is required.
-n, --name [name] Name of the content type to update. Specify the ID or the name but not both, one is required
--listTitle [listTitle] Name of the list if you want to update a list content type. Specify either listTitle, listId or listUrl
--listId [listId] ID of the list if you want to update a list content type. Specify either listTitle, listId or listUrl
--listUrl [listUrl] URL of the list if you want to update a list content type. Specify either listTitle, listId or listUrl

Examples

Move site content type to a different group:

m365 spo contenttype set --id 0x001001 --webUrl https://contoso.sharepoint.com --Group "My group"

Rename list content type:

m365 spo contenttype set --id 0x001001 --webUrl https://contoso.sharepoint.com --listTitle "My list" --Name "My item"

Additional Info

This command supports using unknown properties. Unknown properties map to the properties of the ContentType CSOM object that support setting a value. This command is highly useful for scenarios like deploying SPFx form customizers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions