Skip to content

Commit 3601aa5

Browse files
authored
Updates to document structure to match schema 💁‍♂️ verb "addContentTypesFromHub" is a root "action" and not a "subaction" of "createSPList"
1 parent 589f0a9 commit 3601aa5

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

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

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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)