Sharepoint Site Page create api target section/column

Rohit Devmore 21 Reputation points
2021-09-30T06:37:52.647+00:00

With https://learn.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-beta&tabs=http

Sample request body in example explains about adding webparts. However, is there a way to create and target perticular section/column in a page and add webpart to that perticualr section?

HOw would sample body look like for this?.

GET query doesnt return section/column related information.

GET /sites/{site-id}/pages/{page-id}

We can do this with PNP.Powershell, howevet that cannot be used in SPA or Powerautomate . Is there any plan to improve this API to accomodate Sections/Columns?

Using template to create new page is also not an solution since we need to add webparts dynamically on newly created page. There is no "Update" endpoint

Also posted here = https://github.com/microsoftgraph/microsoft-graph-docs/issues/13615

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,621 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-10-01T02:03:11.003+00:00

    Hi @Rohit Devmore ,

    Currently, graph api doesnot supporting adding sections when creating site pages.

    You could submit the feature request in Microsoft 365 Developer Platform.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments