Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created January 23, 2026 13:35
Show Gist options
  • Select an option

  • Save expiscornovus/0f8b2019694b089921e90d8542148edb to your computer and use it in GitHub Desktop.

Select an option

Save expiscornovus/0f8b2019694b089921e90d8542148edb to your computer and use it in GitHub Desktop.
Body Add Button Web Part on Page
{
"@odata.type": "#microsoft.graph.sitePage",
"title": "Add Button Web Part on Page",
"canvasLayout": {
"horizontalSections": [
{
"layout": "oneColumn",
"id": "1",
"emphasis": "none",
"columns": [
{
"id": "1",
"webparts": [
{
"id": "@{guid()}",
"webPartType": "0f087d7f-520e-42b7-89c0-496aaf979d58",
"data": {
"dataVersion": "1.1",
"description": "Add a clickable button with a custom label and link.",
"title": "Button",
"properties": {
"alignment": "Right",
"minimumLayoutWidth": 9,
"openInNewTab": true
},
"serverProcessedContent": {
"htmlStrings": [],
"searchablePlainTexts": [
{
"key": "label",
"value": "Visit my website!"
}
],
"links": [
{
"key": "linkUrl",
"value": "https://www.expiscornovus.com"
}
],
"imageSources": []
}
}
}
]
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment