I had to create new content types and define one of them by default rather than keep the default by SharePoint.
I didn't found a cmdlet that allow to define that...
If does not exist, create a cmdlet that allow to do that spo list contenttype default --webUrl [...] --listId/--listTitle --contentTypeId/--contentTypeName
Note: content type name is unique for a webUrl scope.
What do you think about this cmdlet? If you agree with this idea, I'll write a properly the specs of this issue ;)
I like the idea, but using default as a verb isn't clear to me if it's a get or a set operation. What if we'd name the command like spo list contenttype set and then use a --default option to denote that we want to set the particular content type as default on the list?
I like --default option. This option can be use for the set and get cmdlet too?
Good idea! Let's create two separate issues to track the changes.
Ok, I'll do it