question

RohitDevmore-3424 avatar image
0 Votes"
RohitDevmore-3424 asked MichaelHan-MSFT answered

Sharepoint Site Page create api target section/column

With https://docs.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

office-sharepoint-onlinesharepoint-devmicrosoft-graph-sdkmicrosoft-graph-applications
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @RohitDevmore-3424,

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.