Hello!
I'm attempting to retrieve some basic metadata (description, thumbnail) and custom properties for a SharePoint site page using the beta Graph API, but using the basic examples in the documentation isn't giving me all the pieces I need. Specifically, I'm unable to get a description back despite the site having one when editing it through the console. I also cannot get the thumbnail or the custom properties I've set on the page, which seem like they should be coming back as a webPart in the response.
I am hitting endpoint https://graph.microsoft.com/beta/sites/<3-point-id>/pages/<page-id> and getting back:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#sites(<site-id>)/pages/$entity",
"eTag": "",
"id": "",
"lastModifiedDateTime": "2020-09-22T20:49:37Z",
"name": "This-is-a-test-page.aspx",
"webUrl": "SitePages/This-is-a-test-page.aspx",
"title": "Testing a title change",
"pageLayout": "Article",
"createdBy": {
"user": { }
},
"lastModifiedBy": {
"user": { }
},
"parentReference": {
"siteId": ""
},
"contentType": {
"id": "",
"name": "Site Page"
},
"webParts": [
{
"type": "rte",
"data": {
"innerHTML": "<p>Just something to fill the page and test this out.</p>"
}
}
],
"publishingState": {
"level": "published",
"versionId": "3.0"
}
}
Here's a screenshot of the site's properties in the console:
Any thoughts on how I could return this additional data, such as the description, the page's thumbnail, and the custom properties I've set on the page? I don't see any parameters I can pass in, and I've tried directly selecting at least the description with no success.