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
@@ -27,14 +27,14 @@ Choose the permission or permissions marked as least privileged for this API. Us
27
27
<!-- { "blockType": "ignored" } -->
28
28
29
29
```http
30
-
GET /sites/{site-id}/pageTemplates/microsoft.graph.pageTemplate/{page-template-id}
30
+
GET /sites/{site-id}/pageTemplates/{page-template-id}/microsoft.graph.pageTemplate
31
31
```
32
32
33
33
## Optional query parameters
34
34
35
35
This method supports the `$select` and `$expand` OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
36
36
37
-
You can use the `$expand=canvasLayout` query parameter to include the content of an item when you retrieve the metadata of an item if the item has a **canvasLayout** relationship.
37
+
You can use the `$expand=canvasLayout` query parameter to include the content of an item when you retrieve its metadata if the item has a **canvasLayout** relationship.
38
38
39
39
40
40
## Request headers
@@ -56,23 +56,20 @@ If successful, this method returns a `200 OK` and a [pageTemplate](../resources/
56
56
57
57
## Examples
58
58
59
+
### Example 1: Get a page template in the templates folder of a site
60
+
61
+
The following example shows how to get a page template in the templates folder of a SharePoint site.
GET /sites/dd00d52e-0db7-4d5f-8269-90060ac688d1/pageTemplates/microsoft.graph.pageTemplate/f6ed8c43-9923-4c6c-ba09-9c32b8f10aeb
70
+
GET https://graph.microsoft.com/beta/sites/dd00d52e-0db7-4d5f-8269-90060ac688d1/pageTemplates/f6ed8c43-9923-4c6c-ba09-9c32b8f10aeb/microsoft.graph.pageTemplate
The following example shows how to use the `$select` query parameter to retrieve specific properties of a page template.
120
+
121
+
#### Request
122
+
123
+
The following example shows a request.
124
+
125
+
<!-- {
126
+
"blockType": "request",
127
+
"name": "get_pageTemplate_2"
128
+
}
129
+
-->
130
+
```msgraph-interactive
131
+
GET https://graph.microsoft.com/beta/sites/7f50f45e-714a-4264-9c59-3bf43ea4db8f/pageTemplates/df69e386-6c58-4df2-afc0-ab6327d5b202/microsoft.graph.pageTemplate?$select=id,name
### Example 3: Get a page template with canvas content using $expand
155
+
156
+
The following example shows how to use the `$expand` query parameter to access the page template and its content with `?$expand=canvasLayout`.
157
+
158
+
#### Request
159
+
160
+
The following example shows a request.
161
+
162
+
<!-- {
163
+
"blockType": "request",
164
+
"name": "get_pageTemplate_3"
165
+
}
166
+
-->
167
+
```http
168
+
GET https://graph.microsoft.com/beta/sites/7f50f45e-714a-4264-9c59-3bf43ea4db8f/pageTemplates/df69e386-6c58-4df2-afc0-ab6327d5b202/microsoft.graph.pageTemplate?$expand=canvasLayout
0 commit comments