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
+32-4Lines changed: 32 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Site design JSON schema
3
3
description: JSON schema reference for building site designs for SharePoint.
4
-
ms.date: 10/04/2018
4
+
ms.date: 10/10/2018
5
5
---
6
6
7
7
# Site design JSON schema
@@ -31,8 +31,25 @@ Use the **createSPList** verb to create a new SharePoint list.
31
31
32
32
#### JSON values
33
33
34
-
-**listName**– The name of the list for users to identify it with.
35
-
-**templateType**– Which template to apply to the list. Typically you would use value 100. Template type values are documented in [SPListTemplateType enumeration](https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx).
34
+
-**listName**– The name of the list.
35
+
-**templateType**– Which template to apply to the list. Typically you would use value 100. The full list of template type values are documented in [SPListTemplateType enumeration](https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx) - but the ones we currently support include:
36
+
37
+
| List Template Name | Enum |
38
+
|--------------|---------|
39
+
Generic List | 100
40
+
Document Library | 101
41
+
Survey | 102
42
+
Links | 103
43
+
Announcements | 104
44
+
Contacts | 105
45
+
Events | 106
46
+
Tasks | 107
47
+
Discussion Board | 108
48
+
PictureLibrary | 109
49
+
Site Pages | 119
50
+
Issue Tracking | 1100
51
+
52
+
If you use 101 or 119 and reference the default names ("Documents" or "Site Pages") you can modify the library created with the template. See example below.
36
53
-**subactions**– An array of actions that run in the order listed to create your list.
37
54
38
55
#### Example
@@ -46,7 +63,18 @@ Use the **createSPList** verb to create a new SharePoint list.
46
63
{
47
64
"verb": "setDescription",
48
65
"description": "List of Customers and Orders"
49
-
}
66
+
}
67
+
]
68
+
},
69
+
{
70
+
"verb": "createSPList",
71
+
"listName": "Documents",
72
+
"templateType": 101,
73
+
"subactions": [
74
+
{
75
+
"verb": "setDescription",
76
+
"description": "This is a modified default document library"
0 commit comments