You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apis/site-creation-rest.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,24 @@ This topic assumes that you are already familiar with the following topics:
13
13
-[Get to know the SharePoint REST service](../sp-add-ins/get-to-know-the-sharepoint-rest-service.md)
14
14
-[Complete basic operations using SharePoint REST endpoints](../sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints.md)
15
15
16
-
This topic does not provide code snippets. The REST examples below assume an HTTP Accept header of 'application/json;odata.metadata=none'.
16
+
This topic does not provide code snippets. The REST examples below assume an HTTP Accept header of `application/json;odata.metadata=none`.
17
17
18
18
The following REST commands are available for creating a modern SharePoint Communication site:
19
19
20
20
-**Create**. Create a new SharePoint site.
21
-
-**Delete**. Deletes a SharePoint site.
21
+
-**Delete**. Delete a SharePoint site.
22
22
-**Status**. Get the status of a SharePoint site.
23
23
24
24
The base URL for the REST commands is `_api/SPSiteManager`.
25
25
26
26
## Create a modern site
27
27
28
-
Using the following REST api you can create both Communication sites and non-group associated Team Sites.
28
+
Using the following REST API you can create both Communication sites and Non-group associated Team Sites.
29
29
30
-
To specify which type of site to create you use the WebTemplate attribute. Use one of the following templates to select which type of site to create:
30
+
To specify which type of site to create you use the `WebTemplate` attribute. Use one of the following templates to select which type of site to create:
31
31
32
32
- Communication Site: `SITEPAGEPUBLISHING#0`
33
-
-non-group associated Team Site: `STS#3`
33
+
-Non-group associated Team Site: `STS#3`
34
34
35
35
```json
36
36
url: /_api/SPSiteManager/create
@@ -55,12 +55,12 @@ body:
55
55
```
56
56
57
57
> [!IMPORTANT]
58
-
> 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.
58
+
> 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.
59
59
60
60
61
61
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](/powershell/module/sharepoint-pnp/get-pnpsitedesign) (PnP PowerShell) cmdlets. If you want to apply an out-of-the-box available site design, use the following values:
62
62
63
-
- Topic: 96c933ac-3698-44c7-9f4a-5fd17d71af9e or null
63
+
- Topic: `96c933ac-3698-44c7-9f4a-5fd17d71af9e` or null
0 commit comments