webPart resource type
◼ 実際に作成したサイトページから、Web Partリソースを取得するのが
オススメです
12
GET
/sites/{sitesId}/pages/{sitePageI
d}/webparts
GET
/sites/{sitesId}/pages/{sitePageI
d}/canvasLayout/horizontalSecti
ons/{horizontalSectionId}/colum
ns/{horizontalSectionColumnId}/
webparts
GET
/sites/{sitesId}/pages/{sitePageI
d}/canvasLayout/verticalSection/
webparts
"properties": {
"isMigrated": true,
"layoutId": "Button",
"shouldShowThumbnail": true,
"imageWidth": 100,
"hideWebPartWhenEmpty": true,
"dataProviderId": "QuickLinks",
"webId": "f07ee155-cdb5-45a3-8d51-1a0e278440ae",
"siteId": "1f9a9f96-b55c-4ce1-bc84-a3c14b7b27be",
"imagePicker": "/sites/TeamSite/SiteAssets/SitePages/Sample/画像1.png",
"
[email protected]": "#Collection(graph.Json)",
"items": [
{
"thumbnailType": 1,
"id": 3,
"description": "",
"altText": "",
"rawPreviewImageMinCanvasWidth": 32767,
"sourceItem": {
"@odata.type": "#graph.Json",
"itemType": 2,
"fileExtension": "",
"progId": ""
},
"image": {
"@odata.type": "#graph.Json",
"imageFit": 2,
"minCanvasWidth": 1,
"guids": {
"@odata.type": "#graph.Json",
"listId": "1d778c11-6259-44c3-98c1-fcdcd4db66f3",
"uniqueId": "024c1110-d336-44de-972e-8494bdb87b87",
"webId": "f07ee155-cdb5-45a3-8d51-1a0e278440ae",
"siteId": "1f9a9f96-b55c-4ce1-bc84-a3c14b7b27be"
}
}
}
サイトページ
Graph
Pages/webparts
API
webpart の
JSON Schema