Skip to content

Commit 1cc6f78

Browse files
authored
Update site-creation-rest.md
1 parent b731985 commit 1cc6f78

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/apis/site-creation-rest.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ This topic assumes that you are already familiar with the following topics:
1313
- [Get to know the SharePoint REST service](../sp-add-ins/get-to-know-the-sharepoint-rest-service.md)
1414
- [Complete basic operations using SharePoint REST endpoints](../sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints.md)
1515

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`.
1717

1818
The following REST commands are available for creating a modern SharePoint Communication site:
1919

2020
- **Create**. Create a new SharePoint site.
21-
- **Delete**. Deletes a SharePoint site.
21+
- **Delete**. Delete a SharePoint site.
2222
- **Status**. Get the status of a SharePoint site.
2323

2424
The base URL for the REST commands is `_api/SPSiteManager`.
2525

2626
## Create a modern site
2727

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.
2929

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:
3131

3232
- Communication Site: `SITEPAGEPUBLISHING#0`
33-
- non-group associated Team Site: `STS#3`
33+
- Non-group associated Team Site: `STS#3`
3434

3535
```json
3636
url: /_api/SPSiteManager/create
@@ -55,12 +55,12 @@ body:
5555
```
5656

5757
> [!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.
5959
6060

6161
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:
6262

63-
- Topic: 96c933ac-3698-44c7-9f4a-5fd17d71af9e or null
63+
- Topic: `96c933ac-3698-44c7-9f4a-5fd17d71af9e` or null
6464
- Showcase: `6142d2a0-63a5-4ba0-aede-d9fefca2c767`
6565
- Blank: `f6cc5403-0d63-442e-96c0-285923709ffc`
6666

@@ -77,7 +77,7 @@ The site design id can be retrieved by using the [Get-SPOSiteDesign](/powershell
7777

7878
### Response
7979

80-
If successful, this method returns a `200, OK` response code and simple JSON object in the response body with the following details.
80+
If successful, this method returns a `200, OK` response code and simple JSON object in the response body with the following details:
8181

8282
```json
8383
{
@@ -98,7 +98,7 @@ accept: application/json;odata.metadata=none
9898
odata-version: 4.0
9999
body:
100100
{
101-
"siteId":"d11e59ca-1465-424c-be90-c847ba849af5"
101+
"SiteId":"d11e59ca-1465-424c-be90-c847ba849af5"
102102
}
103103
```
104104
### Response
@@ -119,7 +119,7 @@ body: none
119119

120120
### Response
121121

122-
If successful, this method returns a `200, OK` response code and simple JSON object in the response body with the following details.
122+
If successful, this method returns a `200, OK` response code and simple JSON object in the response body with the following details:
123123

124124
If the site exists, the response returns the site status and site URL:
125125

@@ -142,7 +142,7 @@ If the site does not exist, the response returns a site status of 0 with no URL
142142
}
143143
```
144144

145-
The full set of values for SiteStatus are as follows:
145+
The full set of values for `SiteStatus` are as follows:
146146

147147
+ `0` - Not Found. The site doesn't exist.
148148
+ `1` - Provisioning. The site is currently being provisioned.

0 commit comments

Comments
 (0)