Skip to content

New command: Update a single-part app page #875

@waldekmastykarz

Description

@waldekmastykarz

Updates a single-part app page

spo apppage set -u|--webUrl <webUrl> -n|--pageName <pageName> -d|--webPartData <webPartData>

  • webUrl: The URL of the site where the page to update is located
  • pageName: The name of the page to update, eg. page.aspx
  • webPartData: JSON string of the web part to put on the page

Request:

POST {{siteUrl}}/_api/sitepages/Pages/UpdateFullPageApp
Accept: application/json;odata=nometadata
Content-Type: application/json;odata=nometadata

{
    "serverRelativeUrl": "/sites/dev/SitePages/My-app.aspx",
    "webPartDataAsJson": "{\"id\":\"e6599e48-c875-4c0e-8b1f-abe2f54c1132\",\"instanceId\":\"ac6edb6e-199a-4a30-a3b6-73466a68187b\",\"title\":\"Full App Page testing wp\",\"description\":\"HelloWorld description\",\"dataVersion\":\"1.0\",\"properties\":{\"description\":\"HelloWorld\"}}"
}

Source: https://spblog.net/post/2019/03/05/what-s-new-and-what-s-changed-in-sharepoint-online-rest-api-in-january-february-2019

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions