m365 spo contenttype set --name "Document Set" --webUrl $siteUrl --listTitle "DocumentSets" --Name "DocumentSet"
m365 spo contenttype set --name "Document Set" --webUrl $siteUrl --listTitle "DocumentSets" --Name "DocumentSet"
{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.19045"
},
"cliVersion": "6.8.0",
"nodeVersion": "v18.16.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Send",
"Reports.Read.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.Read.All",
"profile",
"openid",
"email",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Send",
"Reports.Read.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.Read.All"
]
}
Priority
(Medium) I'm annoyed but I'll live
Description
I am using
m365 spo contenttype setcmdlet to rename the content type added to SharePoint list.Using:
Above cmdlet is throwing error:
Steps to reproduce
m365 login$siteUrl = "https://contoso.sharepoint.com/sites/contoso"Expected results
Above cmdlet should rename content type added to SharePoint list as per the cmdlet documentation examples: https://pnp.github.io/cli-microsoft365/cmd/spo/contenttype/contenttype-set/#examples
Actual results
Above cmdlet is throwing error:
Diagnostics
No response
CLI for Microsoft 365 version
v6.8.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
Additional Info
No response