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/declarative-customization/site-design-json-schema.md
+23-17Lines changed: 23 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,29 @@ The overall JSON structure is specified as follows:
30
30
> [!NOTE]
31
31
> **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.
32
32
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
+
33
56
## Create a new SharePoint list
34
57
35
58
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
282
305
}
283
306
```
284
307
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
-
302
308
### removeContentType
303
309
304
310
Removes a content type that was provided by the selected template type.
0 commit comments