Skip to content

Commit 7161e63

Browse files
Merge pull request SharePoint#7815 from sparkitect/my-edits
Update article structure to match schema
2 parents 7044863 + b0c235c commit 7161e63

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

docs/declarative-customization/site-design-json-schema.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Site template JSON schema
33
description: JSON schema reference for building site templates for SharePoint.
4-
ms.date: 01/31/2022
4+
ms.date: 03/2431/2022
55
ms.localizationpriority: high
66
---
77

@@ -30,6 +30,29 @@ The overall JSON structure is specified as follows:
3030
> [!NOTE]
3131
> **Actions** can be run more than once on a site. Rerunning **actions** on the same site with the same parameters will result in an update to the existing schema and not duplication of schema.
3232
33+
34+
35+
## addContentTypesFromHub
36+
37+
Use the **addContentTypesFromHub** verb to sync content types from a content type hub to the site.
38+
39+
> [!NOTE]
40+
> Once **addContentTypesFromHub** is applied on a site, the **addContentType** subaction on a list will be able to add it to the list by name.
41+
42+
### JSON value
43+
44+
- `ids`: An array of the content type IDs that need to be synced.
45+
46+
#### Example
47+
48+
```json
49+
{
50+
"verb": "addContentTypesFromHub",
51+
"ids": ["0x01007CE30DD1206047728BAFD1C39A850120"]
52+
}
53+
```
54+
55+
3356
## Create a new SharePoint list
3457

3558
Use the **createSPList** verb to create a new SharePoint list.
@@ -282,23 +305,6 @@ Adds a content type to the list. Currently these are limited to the default cont
282305
}
283306
```
284307

285-
### addContentTypesFromHub
286-
287-
Manually syncs content types from a content type hub to a specific site.
288-
289-
#### JSON value
290-
291-
- `ids`: An array of the content type IDs that need to be synced.
292-
293-
#### Example
294-
295-
```json
296-
{
297-
"verb": "addContentTypesFromHub",
298-
"ids": ["0x01007CE30DD1206047728BAFD1C39A850120"]
299-
}
300-
```
301-
302308
### removeContentType
303309

304310
Removes a content type that was provided by the selected template type.

0 commit comments

Comments
 (0)