Skip to content

Commit a75b453

Browse files
PopWarnerVesaJuvonen
authored andcommitted
Removed unnecessary function from Delete sample (SharePoint#3450)
There are two "RestRequest" function call's in the 'DeleteTenantTheme' code sample, the second of which passes a 'UpdateTenantTheme' request with a blank 'themeJson' property, which causes the theme engine to error. Also updated the theme name in the delete example, to match the theme name used in the other examples, 'Sounders Rave Green'.
1 parent e6e20a9 commit a75b453

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/declarative-customization/site-theming/sharepoint-site-theming-rest-api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ function RestRequest(url,params) {
120120
}
121121

122122

123-
RestRequest("/_api/thememanager/DeleteTenantTheme", { name:"themeName.DarkYellow" });
124-
125-
RestRequest("/_api/thememanager/UpdateTenantTheme", { name:"themeName",
126-
themeJson:""});
123+
RestRequest("/_api/thememanager/DeleteTenantTheme", { name:"Sounders Rave Green" });
127124
```
128125

129126
<br/>

0 commit comments

Comments
 (0)