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
Helping make these updates requested by the PM owner: 1) Adding the new addContentTypesFromHub script action that recently released, 2) changing "Site design" to "Site template" everywhere, except in a few specific in-code references. How can we get the TOC entry under which this article also updated to say "Site templates & site scripts"?
Copy file name to clipboardExpand all lines: docs/declarative-customization/site-design-json-schema.md
+26-9Lines changed: 26 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
-
title: Site design JSON schema
3
-
description: JSON schema reference for building site designs for SharePoint.
2
+
title: Site template JSON schema
3
+
description: JSON schema reference for building site templates for SharePoint.
4
4
ms.date: 09/24/2021
5
5
ms.localizationpriority: high
6
6
---
7
7
8
-
# Site design JSON schema
8
+
# Site template JSON schema
9
9
10
-
The site design is a list of **actions**. For more complex actions, such as creating a list, there are also **subactions**. Each action is specified by a "verb" value. Verb actions are run in the order they appear in the JSON script. Only the verb actions listed here can be used; otherwise, an "unable to handle action" error will be thrown when trying to upload a site script. More actions will be added over time.
10
+
The site template is a list of **actions**. For more complex actions, such as creating a list, there are also **subactions**. Each action is specified by a "verb" value. Verb actions are run in the order they appear in the JSON script. Only the verb actions listed here can be used; otherwise, an "unable to handle action" error will be thrown when trying to upload a site script. More actions will be added over time.
11
11
12
12
The overall JSON structure is specified as follows:
13
13
@@ -26,7 +26,7 @@ The overall JSON structure is specified as follows:
26
26
27
27
You can view - and reference - the latest schema here: https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json
28
28
29
-
#### Applying site designs multiple times
29
+
#### Applying site temlpates multiple times
30
30
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
@@ -282,6 +282,23 @@ Adds a content type to the list. Currently these are limited to the default cont
282
282
}
283
283
```
284
284
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
+
285
302
### removeContentType
286
303
287
304
Removes a content type that was provided by the selected template type.
@@ -396,7 +413,7 @@ Registers field extension for a list field. For more information on these client
0 commit comments