Skip to content

Commit 2f51d5e

Browse files
author
Yadong Zhai
committed
addressed comments
1 parent 17a480f commit 2f51d5e

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

api-reference/beta/api/pagetemplate-create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Content-Type: application/json
7373
"showRecommendedPages": false,
7474
"titleArea": {
7575
"enableGradientEffect": true,
76-
"imageWebUrl": "/_LAYOUTS/IMAGES/VISUALTEMPLATETITLEIMAGE.JPG",
76+
"imageWebUrl": "https://media.contoso.odsp.cdn.office.net/sitepagethumbnail.png",
7777
"layout": "colorBlock",
7878
"showAuthor": true,
7979
"showPublishedDate": false,

api-reference/beta/api/pagetemplate-get.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Content-type: application/json
8787
"name": "Home.aspx",
8888
"webUrl": "https://contoso.sharepoint.com/SitePages/Templates/Home.aspx",
8989
"title": "Organization Home",
90-
"thumbnailWebUrl": "https://cdn.hubblecontent.osi.office.net/m365content/publish/00210d24-bba0-42e6-9a31-1d452a95dd75/thumbnails/large.jpg?file=163352059.jpg",
90+
"thumbnailWebUrl": "https://cdn.contoso.osi.office.net/m365content/publish/005292d6-9dcc-4fc5-b50b-b2d0383a411b/image.jpg",
9191
"promotionKind": "page",
9292
"pageLayout": "home",
9393
"showComments": true,
@@ -114,9 +114,7 @@ Content-type: application/json
114114
}
115115
```
116116

117-
### Example 2: Get a page template using $select and $expand
118-
119-
The following example shows how to use the `$select` and `$expand` query parameters to retrieve site page metadata and page content in a single request.
117+
### Example 2: Get a page template using select
120118

121119
#### Request
122120

@@ -151,9 +149,7 @@ Content-type: application/json
151149
}
152150
```
153151

154-
### Example 3: Get a page template with canvas content
155-
156-
The following example shows how to use the `$expand` query parameter to access the page template and its content with `?$expand=canvasLayout`.
152+
### Example 3: Get a page template with canvas content by using expand
157153

158154
#### Request
159155

@@ -187,7 +183,7 @@ Content-type: application/json
187183
"id": "f45354cb-d634-45df-8b88-2b4e96a1dc45",
188184
"lastModifiedDateTime": "2023-04-16T10:01:41Z",
189185
"name": "autotest Electronic Convertible.aspx",
190-
"webUrl": "https://contoso.sharepoint.com/SitePages/Templates/autotest Electronic Convertible.aspx",
186+
"webUrl": "https://contoso.sharepoint.com/SitePages/Templates/Home.aspx",
191187
"title": "autotest Electronic Convertible",
192188
"pageLayout": "article",
193189
"thumbnailWebUrl": "https://media.contoso.odsp.cdn.office.net/sitepagethumbnail.png",

api-reference/beta/api/sitepage-createfromtemplate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Content-Type: application/json
6060
{
6161
"title": "Sample",
6262
"name": "Sample.aspx",
63-
"id": "f6ed8c43-9923-4c6c-ba09-9c32b8f10aeb"
63+
"templateId": "f6ed8c43-9923-4c6c-ba09-9c32b8f10aeb"
6464
}
6565
6666
```
@@ -116,7 +116,7 @@ Content-type: application/json
116116
},
117117
"titleArea": {
118118
"enableGradientEffect": true,
119-
"imageWebUrl": "/_LAYOUTS/IMAGES/VISUALTEMPLATETITLEIMAGE.JPG",
119+
"imageWebUrl": "https://cdn.contoso.osi.office.net/m365content/publish/005292d6-9dcc-4fc5-b50b-b2d0383a411b/image.jpg",
120120
"layout": "colorBlock",
121121
"showAuthor": true,
122122
"showPublishedDate": false,

api-reference/beta/api/sitepage-saveastemplate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Content-type: application/json
112112
},
113113
"titleArea": {
114114
"enableGradientEffect": true,
115-
"imageWebUrl": "/_LAYOUTS/IMAGES/VISUALTEMPLATETITLEIMAGE.JPG",
115+
"imageWebUrl": "https://cdn.contoso.osi.office.net/m365content/publish/005292d6-9dcc-4fc5-b50b-b2d0383a411b/image.jpg",
116116
"layout": "colorBlock",
117117
"showAuthor": true,
118118
"showPublishedDate": false,

api-reference/beta/resources/sitepage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Inherits from [baseSitePage](../resources/basesitepage.md).
2929
| [Delete](../api/basesitepage-delete.md) | None | Deletes a [sitePage](../resources/sitepage.md) object. |
3030
| [Publish](../api/sitepage-publish.md) | None | Publish a [sitePage](../resources/sitepage.md) object. |
3131
| [Get by position](../api/sitepage-getwebpartsbyposition.md) | [webPart](../resources/webpart.md) collection | Get a collection of [WebPart](../resources/webpart.md) by providing [webPartPosition](../resources/webpartposition.md) information. |
32+
| [Save as template](../api/sitepage-saveastemplate.md) | [pageTemplate](../resources/pagetemplate.md) | save a page as [pageTemplate](../resources/pagetemplate.md) object. |
33+
| [Create page from template](../api/sitepage-createfromtemplate.md) | [sitePage](../resources/sitepage.md) | Create a new [sitePage](../resources/sitepage.md) from a template object. |
3234

3335
## Properties
3436

0 commit comments

Comments
 (0)