Skip to content

Commit 8facf9a

Browse files
author
Marvin Bangert
committed
Included the "SensitivityLabel" parameter, as the "Classification" parameter is not actually applying a label on the site collection.
1 parent ea9633a commit 8facf9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/apis/site-creation-rest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ body:
4444
"Lcid": 1033,
4545
"ShareByEmailEnabled":false,
4646
"Classification":"Low Business Impact",
47+
"SensitivityLabel": "<Your sensitivity label ID>",
4748
"Description":"Description",
4849
"WebTemplate":"SITEPAGEPUBLISHING#0",
4950
"SiteDesignId":"6142d2a0-63a5-4ba0-aede-d9fefca2c767",
@@ -56,6 +57,8 @@ body:
5657
> [!IMPORTANT]
5758
> If you use an app-only context to create the site collection the **Owner property is required**. In other cases this is an optional property and if not present will default to the user calling the REST endpoint.
5859
60+
> [!NOTE]
61+
> The "Classification" parameter only sets the value visible on the site, but doesn't apply the label on the site. Use the new parameter "SensitivityLabel" to actually apply the label on your site collection.
5962
6063
The site design id can be retrieved by using the [Get-SPOSiteDesign](/powershell/module/sharepoint-online/get-spositedesign) (Microsoft SharePoint Online Management Shell) or [Get-PnPSiteDesign](/sharepoint/dev/declarative-customization/site-design-pnppowershell) (PnP PowerShell) cmdlets. If you want to apply an out-of-the-box available site design, use the following values:
6164

0 commit comments

Comments
 (0)