Skip to content

Commit 804ab9b

Browse files
Merge pull request SharePoint#8637 from MarvinBangert/Marvin-Bangert-Site-Creation
Added SensitivityLabel parameter
2 parents ea9633a + 7ca9676 commit 804ab9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/apis/site-creation-rest.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create Modern SharePoint Sites using REST
33
description: Create and get the status of a new modern SharePoint site by using the REST interface.
4-
ms.date: 04/06/2022
4+
ms.date: 12/07/2022
55
ms.localizationpriority: high
66
---
77

@@ -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)