Usage
The spo sitedesign set command updates properties of the SharePoint SiteDesign object. The command covers all of the documented properties .
The ThumbnailUrl property of the SiteDesign is not included in the command's options. It is not documented on the referenced page.
Description
In practice, the payload returned from spo sitedesign get includes a ThumbnailUrl property. And, the "Select a template" dialog uses this property when rendering.
a manually-created HTTP request using the m365 token (util accesstoken get -r https://<tenant>.sharepoint.com) successfully updates the Site Design.
Options
Add the following option to the command:
| Option |
Description |
--thumbnailUrl [thumbnailUrl] |
The new URL of a thumbnail image. If none is specified SharePoint will use a generic image |
Additional Information
The following request will update the Site Design.
POST https://<tenant>.sharepoint.com/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.UpdateSiteDesign
Authorization: Bearer ey...
Content-Type: application/json
Accept: application/json
{
"updateInfo": {
"Id":"<id>",
"ThumbnailUrl":"<thumbnailUrl"
}
}
Usage
The
spo sitedesign setcommand updates properties of the SharePoint SiteDesign object. The command covers all of the documented properties .The ThumbnailUrl property of the SiteDesign is not included in the command's options. It is not documented on the referenced page.
Description
In practice, the payload returned from
spo sitedesignget includes aThumbnailUrlproperty. And, the "Select a template" dialog uses this property when rendering.a manually-created HTTP request using the m365 token (
util accesstoken get -r https://<tenant>.sharepoint.com) successfully updates the Site Design.Options
Add the following option to the command:
--thumbnailUrl [thumbnailUrl]Additional Information
The following request will update the Site Design.