Skip to content

Commit 17a480f

Browse files
authored
Update pagetemplate-update.md
1 parent d89059d commit 17a480f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
3030
-->
3131

3232
```http
33-
PATCH /sites/{sitesId}/pageTemplates/microsoft.graph.pageTemplate/{page-template-id}
33+
PATCH /sites/{site-id}/pageTemplates/{page-template-id}/microsoft.graph.pageTemplate
3434
```
3535

3636
## Request headers
@@ -64,15 +64,14 @@ If successful, this method returns a `200 OK` response code and an updated [page
6464

6565
The following example shows a request.
6666

67-
# [HTTP](#tab/http)
6867
<!-- {
6968
"blockType": "request",
7069
"name": "update_pageTemplate"
7170
}
7271
-->
7372

7473
```http
75-
PATCH /sites/dd00d52e-0db7-4d5f-8269-90060ac688d1/pageTemplates/8fbff3f5-0e5d-49e7-89c7-2b042b3bfaa6/microsoft.graph.pageTemplate
74+
PATCH https://graph.microsoft.com/beta/sites/dd00d52e-0db7-4d5f-8269-90060ac688d1/pageTemplates/8fbff3f5-0e5d-49e7-89c7-2b042b3bfaa6/microsoft.graph.pageTemplate
7675
Content-Type: application/json
7776
7877
{
@@ -82,12 +81,6 @@ Content-Type: application/json
8281
}
8382
```
8483

85-
# [JavaScript](#tab/javascript)
86-
[!INCLUDE [sample-code](../includes/snippets/javascript/update-pagetemplate-javascript-snippets.md)]
87-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
88-
89-
---
90-
9184
### Response
9285

9386
The following example shows the response.
@@ -138,7 +131,7 @@ Content-Type: application/json
138131
},
139132
"titleArea": {
140133
"enableGradientEffect": true,
141-
"imageWebUrl": "https://cdn.hubblecontent.osi.office.net/m365content/publish/005292d6-9dcc-4fc5-b50b-b2d0383a411b/image.jpg",
134+
"imageWebUrl": "https://cdn.contoso.osi.office.net/m365content/publish/005292d6-9dcc-4fc5-b50b-b2d0383a411b/image.jpg",
142135
"layout": "colorBlock",
143136
"showAuthor": true,
144137
"showPublishedDate": false,

0 commit comments

Comments
 (0)