Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created October 30, 2025 11:47
Show Gist options
  • Select an option

  • Save expiscornovus/335176b041f84ec87d779903c82d5763 to your computer and use it in GitHub Desktop.

Select an option

Save expiscornovus/335176b041f84ec87d779903c82d5763 to your computer and use it in GitHub Desktop.
Response Get Page Templates
{
"statusCode": 200,
"headers": {},
"body": {
"@odata.context": "https://contoso.sharepoint.com/sites/PowerUsers/_api/v2.0/$metadata#sites('contoso.sharepoint.com%2C15ec34b0-5d50-4d83-8235-eb2bc48d8799%2C062116f0-a749-4dbd-a6c0-f771d8ea4ec9')/pageTemplates/oneDrive.pageTemplate",
"value": [
{
"@odata.etag": "\"{255B5793-519B-4FB3-BA30-55E15BDB1919},3\"",
"eTag": "\"{255B5793-519B-4FB3-BA30-55E15BDB1919},3\"",
"lastModifiedDateTime": "2025-10-27T13:27:13Z",
"id": "255b5793-519b-4fb3-ba30-55e15bdb1919",
"name": "helloworldtesttempalte.aspx",
"webUrl": "https://contoso.sharepoint.com/sites/SensitiveInformationProtection/SitePages/Templates/helloworldtesttempalte.aspx",
"title": "test",
"pageLayout": "article",
"thumbnailWebUrl": "https://media.akamai.odsp.cdn.office.net/contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png",
"createdBy": {
"user": {
"displayName": "Dennis Goedegebuure",
"email": "[email protected]"
}
},
"lastModifiedBy": {
"user": {
"displayName": "Dennis Goedegebuure",
"email": "[email protected]"
}
},
"parentReference": {
"listId": "9d1707b0-6320-43c1-84aa-ee1e09ea4f87",
"siteId": "15ec34b0-5d50-4d83-8235-eb2bc48d8799"
},
"contentType": {
"id": "0x0101009D1CB255DA76424F860D91F20E6C411800C7D91AFE6AFAE840991317F842D0D005",
"name": "Site Page"
},
"publishingState": {
"level": "published",
"versionId": "1.0"
},
"titleArea": {
"enableGradientEffect": true,
"imageWebUrl": "https://media.contoso.odsp.cdn.office.net/sitepagethumbnail.png",
"layout": "colorBlock",
"showAuthor": true,
"showPublishedDate": false,
"showTextBlockAboveTitle": false,
"textAboveTitle": "TEXT ABOVE TITLE",
"textAlignment": "left",
"title": "sample1",
"[email protected]": "#Collection(String)",
"authorByline": [
"i:0#.f|membership|[email protected]"
],
"imageSourceType": 2,
"serverProcessedContent": {
"imageSources": [
{
"key": "imageSource",
"value": "https://media.contoso.odsp.cdn.office.net/sitepagethumbnail.png"
}
]
},
"[email protected]": "#Collection(graph.Json)",
"authors": [
{
"email": "[email protected]",
"upn": "[email protected]",
"id": "i:0#.f|membership|[email protected]",
"name": "Dennis Goedegebuure"
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment