Usage
m365 spo contenttype sync [options]
Description
Adds a published content type from the content type hub to a site or syncs its latest changes
Options
| Option |
Description |
-u, --webUrl <webUrl> |
The site to sync the Content Type to. |
-i, --id [id] |
The Id of the published Content Type to sync from the Content Type Hub. Specify either id or name. |
-n, --name [name] |
The name of the published Content Type to sync from the Content Type Hub. Specify either id or name. |
--listTitle [listTitle] |
Title of the list. Specify either listTitle, listId or listUrl. Omit to sync as a site content type. |
--listId [listId] |
ID of the list. Specify either listTitle, listId or listUrl. Omit to sync as a site content type. |
--listUrl [listUrl] |
Server- or site-relative URL of the list. Specify either listTitle, listId or listUrl. Omit to sync as a site content type. |
Examples
Syncs a given published content type from the hub to the specified site.
m365 spo contenttype sync —webUrl https://contoso.sharepoint.com/sites/sales --id 0x01007926A45D687BA842B947286090B8F67D
Syncs a given published content type from the hub to the specified site and adds it to the specified list.
m365 spo contenttype sync —webUrl https://contoso.sharepoint.com/sites/sales --id 0x01007926A45D687BA842B947286090B8F67D --listTitle Contacts
Response
The api response should be returned
Additional info
The id property should be added to the types.strings array, to force minimist to parse it as string!
The following endpoint should be used:
https://learn.microsoft.com/en-us/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0&tabs=http
Usage
m365 spo contenttype sync [options]
Description
Adds a published content type from the content type hub to a site or syncs its latest changes
Options
-u, --webUrl <webUrl>-i, --id [id]idorname.-n, --name [name]idorname.--listTitle [listTitle]listTitle,listIdorlistUrl. Omit to sync as a site content type.--listId [listId]listTitle,listIdorlistUrl. Omit to sync as a site content type.--listUrl [listUrl]listTitle,listIdorlistUrl. Omit to sync as a site content type.Examples
Syncs a given published content type from the hub to the specified site.
Syncs a given published content type from the hub to the specified site and adds it to the specified list.
Response
The api response should be returned
Additional info
The
idproperty should be added to the types.strings array, to force minimist to parse it as string!The following endpoint should be used:
https://learn.microsoft.com/en-us/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0&tabs=http